Coder Social home page Coder Social logo

francis-su / storybook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from storybookjs/storybook

0.0 2.0 0.0 46.98 MB

๐Ÿ““ Interactive development & testing environment for React, React-Native, Vue UI components

Home Page: https://storybook.js.org

License: MIT License

JavaScript 97.92% HTML 0.09% CSS 0.01% TypeScript 0.54% Vue 0.94% Shell 0.51%

storybook's Introduction

Storybook

Build Status on CircleCI 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.

Here are some featured examples that you can reference to see how Storybook works: https://storybook.js.org/examples/

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.

Storybook v2.x migration note: If you're using Storybook v2.x and want to shift to 3.x version the easiest way is:

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

It runs a codemod to update all package names. Read all migration details in our Migration Guide

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
  • links - Create links between stories
  • 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

yarn bootstrap

Installs package dependencies and links packages together - using lerna

yarn run publish

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

yarn lint

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

  • yarn lint:js - will check js

  • yarn lint:md - will check markdown + code samples

  • yarn lint:js --fix - will automatically fix js

yarn test

boolean check if unit tests all pass - uses jest

  • yarn 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 alexandrebodin avatar arunoda avatar atticoos avatar danielduan avatar dependencies-bot avatar elisherer avatar frederickfogerty avatar gongreg avatar greenkeeper[bot] avatar greenkeeperio-bot avatar heimdallrj avatar hypnosphi avatar igor-dv avatar joscha avatar kazupon avatar madushan1000 avatar ndelangen avatar ritz078 avatar rmevans9 avatar roonyh avatar shilman avatar storybook-safe-bot avatar thani-sh avatar theinterned avatar tmeasday avatar usulpro avatar wcastand avatar xavxyz 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.