Giter Site home page Giter Site logo

lucasmotta / storybook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from storybookjs/storybook

0.0 0.0 0.0 25.98 MB

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

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

License: MIT License

JavaScript 98.24% HTML 0.44% CSS 0.12% TypeScript 0.79% Shell 0.41%

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

arunoda avatar thani-sh avatar ndelangen avatar shilman avatar roonyh avatar greenkeeperio-bot avatar ritz078 avatar aaronmcadam avatar heimdallrj avatar usulpro avatar theinterned avatar z4o4z avatar joscha avatar tmeasday avatar frederickfogerty avatar danielduan avatar gongreg avatar wcastand avatar elisherer avatar madushan1000 avatar greenkeeper[bot] avatar yangshun avatar xavxyz avatar evgenykochetkov avatar sachag avatar eschaefer avatar thinkholic avatar renatorib avatar tigerc10 avatar m-sureshraj 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.