Description
We need to integrate Storybook into our Experience Builder frontend application to streamline the development, documentation, and testing of UI components in isolation. This addition will improve our component-level testing and enhance collaborative workflows between developers.
XB's current UI components can be divided into three groups:
- some borrowed from Radix and unmodified
- some borrowed from Radix and customized
- some completely custom
The plan is to use Storybook for any of the components in group 2 and 3, and specifically for the new components in the recently delivered designs.

| Comment | File | Size | Author |
|---|---|---|---|
| #14 | output.gif | 463.73 KB | soaratul |
Issue fork experience_builder-3486888
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
balintbrewsComment #5
tinarey commentedI was working on adding SB and a component last week as well and found this too late. I've merged my work (adds a button component and a fix for radix root making autodoc components too high). and opened an MR. Would be great to get this merged so we can split out the work for storybook components.
Comment #6
balintbrewsComment #7
finnsky commentedI want to suggest this one for SDC components.
It is still in development, but already supports lot of things
https://www.npmjs.com/package/storybook-addon-sdc
Check Readme ;)
Comment #8
soaratul commented@finnsky Thanks for your suggestion it looks great, but we’re implementing Storybook for the XB React app’s UI, and not for SDCs.
Comment #9
finnsky commentedRadix components also can be SDC :) And folow JSON schema definitions.
Comment #10
soaratul commentedBelow google sheet viewable for everyone having the list of all components used in XB that are not connected to Redux store and if we can write stories as of not or not with reason.
https://docs.google.com/spreadsheets/d/1h61Yo__ejYYSQrxHMboiEu7Tw5DS5tyf...
Comment #12
balintbrewsFantastic work! 👏🏻
Comment #13
wim leersCan we please get a screenshot in the issue summary to show this off? 😄 Or better yet: a short screencast! 🤓
Comment #14
soaratul commented@wim-leers Added gif for stories!
Comment #15
wim leersThanks, @soaratul! 😄