storybook-addon-sdc 0.22.19 → 0.22.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -616,7 +616,7 @@ thirdPartySettings:
|
|
|
616
616
|
theme: 'dark'
|
|
617
617
|
stories:
|
|
618
618
|
preview:
|
|
619
|
-
|
|
619
|
+
props:
|
|
620
620
|
variant: 'default'
|
|
621
621
|
parameters:
|
|
622
622
|
backgrounds:
|
|
@@ -635,7 +635,7 @@ Below is a list of all available configuration options for `thirdPartySettings.s
|
|
|
635
635
|
| `disabledStories` | `array` | Optional. Array of story names to disable. Supports `basic`, `preview`, or any custom story name. Use `all` to disable all stories. **Note:** `disableBasicStory` is deprecated in favor of `disabledStories: ['basic']`. |
|
|
636
636
|
| `parameters` | `object` | Global [Storybook parameters](https://storybook.js.org/docs/writing-stories/parameters) applied to all generated stories. |
|
|
637
637
|
| `globals` | `object` | Global [Storybook globals](https://storybook.js.org/docs/essentials/toolbars-and-globals) applied to all generated stories. Story-level `globals` override component-level values. |
|
|
638
|
-
| `stories` | `object` | Allows defining or overriding specific stories. Each key (e.g. `preview`) represents a story. Within each story, you can define `
|
|
638
|
+
| `stories` | `object` | Allows defining or overriding specific stories. Each key (e.g. `preview`) represents a story. Within each story, you can define `props`, `slots`, `parameters`, `globals`, `description`, `name`, and `library_wrapper`. |
|
|
639
639
|
|
|
640
640
|
### Disabled Stories Examples
|
|
641
641
|
|
|
@@ -661,13 +661,13 @@ thirdPartySettings:
|
|
|
661
661
|
sdcStorybook:
|
|
662
662
|
stories:
|
|
663
663
|
preview:
|
|
664
|
-
|
|
664
|
+
props:
|
|
665
665
|
variant: 'compact'
|
|
666
666
|
parameters:
|
|
667
667
|
layout: 'padded'
|
|
668
668
|
```
|
|
669
669
|
|
|
670
|
-
This configuration creates an additional story named **Preview**, rendered using the provided `
|
|
670
|
+
This configuration creates an additional story named **Preview**, rendered using the provided `props` and `parameters`.
|
|
671
671
|
|
|
672
672
|
### Example: Globals (Toolbar)
|
|
673
673
|
|