/backpack-ui

All the tools you need to build the Lonely Planet UI experience.

Primary LanguageJavaScriptMIT LicenseMIT

backpack-ui

Every adventurer needs a set of tools to take along the way! Backpack is the Lonely Planet toolset that we use to build front end apps.

Installation

npm install backpack-ui --save

Usage

import Button from "backpack-ui/dist/components/button";

Develop components with Storybook

npm run storybook

Open http://localhost:6006/ in your favorite web browser.

Then import your component(s) into stories/index.jsx and render them like so:

storiesOf("Some component name", module)
  .add("Default", () => (
    <ComponentName />
  ))
  .add("Some variation", () => (
    <ComponentName prop="value" />
  ));

Contributing

Please read the guidelines for contributing before making a pull request.