Giter VIP home page Giter VIP logo

storybook's Introduction

Storybook

Greenkeeper badge Build Status CodeFactor Known Vulnerabilities BCH compliance codecov Storybook Slack Backers on Open Collective Sponsors on Open Collective


Storybook is a development environment for UI components. It allows you to browse a component library, view the different states of each component, and interactively develop and test components.

Intro

Storybook Screenshot

Storybook runs outside of your app. This allows you to develop UI components in isolation, which can improve component reuse, testability, and development speed. You can build quickly without having to worry about application-specific dependencies.

Storybook comes with a lot of addons for component design, documentation, testing, interactivity, and so on. Storybook's easy-to-use API makes it easy to configure and extend in various ways. It has even been extended to support React Native development for mobile.

Table of contents

Getting Started

First install storybook:

npm i -g @storybook/cli
cd my-react-app
getstorybook

Once it's installed, you can npm run storybook and it will run the development server on your local machine, and give you a URL to browse some sample stories.

For full documentation on using Storybook visit: storybook.js.org

Projects

Main Projects

Sub Projects

  • CLI - Streamlined installation for a variety of app types
  • examples - Code examples to illustrate different Storybook use cases

Addons

  • storyshots - Easy snapshot testing for storybook
  • actions - Log actions as users interact with components in storybook
  • comments - Comment on storybook stories
  • graphql - Query a GraphQL server within Storybook stories
  • info - Annotate stories with extra component usage information
  • knobs - Interactively edit component prop data in the Storybook UI
  • notes - Annotate storybook stories with notes
  • options - Customize the storybook UI in code

Contributing

We welcome contributions to Storybook!

  • โ‡„ Pull requests and โ˜… Stars are always welcome.
  • Read our contributing guide to get started.

Development scripts

npm run bootstrap

Installs package dependencies and links packages together - using lerna

npm run publish

Push a release to git and npm will ask for version in interactive mode - using lerna.

npm run lint

boolean check if code conforms to linting rules - uses remark & eslint

  • npm run lint:js - will check js

  • npm run lint:md - will check markdown + code samples

  • npm run lint:js -- --fix - will automatically fix js

  • npm run lint:md -- -o - will automatically fix markdown

npm run test

boolean check if unit tests all pass - uses jest

  • npm run test:watch - will run tests in watch-mode

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

storybook's People

Contributors

aaronmcadam avatar arunoda avatar danielduan avatar elisherer avatar enjoylife avatar eschaefer avatar evenchange4 avatar evgenykochetkov avatar frederickfogerty avatar gongreg avatar greenkeeper[bot] avatar greenkeeperio-bot avatar heimdallrj avatar joscha avatar m-sureshraj avatar madushan1000 avatar maxhodges avatar ndelangen avatar ritz078 avatar roonyh avatar sachag avatar shilman avatar thani-sh avatar theinterned avatar tmeasday avatar usulpro avatar wcastand avatar xavxyz avatar yangshun avatar z4o4z avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.