sensiolabs / storybook-bundle
Bundle to use Storybook with Symfony UX packages.
Requires
- php: >=8.1
- symfony/console: ^7.0
- symfony/filesystem: ^7.0
- symfony/twig-bundle: ^7.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- symfony/asset-mapper: ^7.0
- symfony/browser-kit: ^7.0
- symfony/css-selector: ^7.0
- symfony/framework-bundle: ^7.0
- symfony/phpunit-bridge: ^7.0
- symfony/stimulus-bundle: ^2.16
- symfony/ux-live-component: ^2.16
- symfony/ux-twig-component: 2.16
- symfonycasts/sass-bundle: ^0.5.1
- symfonycasts/tailwind-bundle: ^0.5.0
Conflicts
This package is not auto-updated.
Last update: 2024-05-08 08:40:53 UTC
README
This bundle provides a basic integration for Storybook into a Symfony application using Twig Components.
DISCLAIMER:
This bundle is under active development. Some features may not work as expected and the current documentation may be incomplete.
Table of Content
- Installation
- Getting Started
- Configuration
- Storybook Features
- Stories
- Addons
- Args Processors
- Component Mock
- Static Build
Installation
Clone this repo and install the bundle in your project.
Initialize Storybook in your project:
bin/console storybook:init
This will create basic configuration files and add required dependencies to your package.json
.
Install new dependencies with:
npm install
Ensure your Symfony server is running on the same address defined in your main.ts
configuration file. Then run the Storybook dev server with:
npm run storybook
License
MIT License (MIT): see LICENSE.