Files
backstage/storybook
Arup Chauhan 8c60eb7a46 Fixes issue #25011 (#25721)
* Fixes issue #25011, removed MemoryRouter and added decorator with WrapInTestApp for proper routing context

Signed-off-by: Arup Chauhan <arupchauhan26@gmail.com>

* Fixes issue #25011, removed comment lines

Signed-off-by: Arup Chauhan <arupchauhan26@gmail.com>

* Fixes issue #25011: Updated package.json

Signed-off-by: Arup Chauhan <arupchauhan26@gmail.com>

---------

Signed-off-by: Arup Chauhan <arupchauhan26@gmail.com>
2024-08-13 14:59:31 +02:00
..
2024-08-13 14:59:31 +02:00
2024-08-13 14:59:31 +02:00

storybook

This package provides a Storybook build for Backstage. See https://backstage.io/storybook/.

Usage

To run the storybook locally, call yarn storybook in repo root. This will show the default set of stories that we publish to https://backstage.io/storybook

If you want to show stories other than the default set, you can pass one or more package paths as an argument when calling storybook, for example:

yarn storybook plugins/search

Why is this not part of @backstage/core-components?

This separate storybook package exists because of dependency conflicts with @backstage/cli. It uses nohoist to avoid the conflicts, and since you can only use that in private packages it has to be separated out of @backstage/core-components.