Storybook for Django is an experimental UI development environment for your Django UI components. Work on components in isolation from your site or app. Test them with mock data. Document as you go. Have a look at our online demo.
Does this sound useful? Great, let’s get you set up. First, start by setting up django-pattern-library. Then, from the root of your project,
npx -p @storybook/cli sb init # Once the project is set up, npm install --save-dev storybook-django
Then, copy the code from
demo/storybook into your project.
See torchbox/django-pattern-library#103 – Storybook prototype of the pattern library for more context on this project, and to keep up with changes to it in relation with django-pattern-library.
The demo site showcases:
See anything you like in here? Anything missing? We welcome all support, whether on bug reports, feature requests, code, design, reviews, tests, documentation, and more. Please have a look at our contribution guidelines.
If you just want to set up the project on your own computer, the contribution guidelines also contain all of the setup commands.