storybook-addon-sdc 0.2.9 → 0.2.10
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 +9 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Storybook SDC Addon
|
|
1
|
+
# Storybook SDC Addon
|
|
2
2
|
|
|
3
3
|
This addon streamlines the integration of Drupal Single Directory Components (SDC) into Storybook, allowing YAML-configured components (e.g., `*.component.yml`) to be dynamically loaded as stories in Storybook.
|
|
4
4
|
|
|
@@ -7,6 +7,7 @@ This addon streamlines the integration of Drupal Single Directory Components (SD
|
|
|
7
7
|
## Table of Contents
|
|
8
8
|
|
|
9
9
|
- [Overview](#overview)
|
|
10
|
+
- [Storybook Example Live](#storybook-example-live)
|
|
10
11
|
- [Why Choose SDC Storybook Over Alternatives?](#why-choose-sdc-storybook-over-alternatives)
|
|
11
12
|
- [Features of the Addon](#features-of-the-addon)
|
|
12
13
|
- [Dependencies](#dependencies)
|
|
@@ -15,7 +16,6 @@ This addon streamlines the integration of Drupal Single Directory Components (SD
|
|
|
15
16
|
- [Setting Default Values](#setting-default-values)
|
|
16
17
|
- [Creating Experimental Stories](#creating-experimental-stories)
|
|
17
18
|
- [Regular Storybook](#regular-storybook)
|
|
18
|
-
- [Storybook Example Live](#storybook-example-live)
|
|
19
19
|
- [Known Issues](#known-issues)
|
|
20
20
|
- [UI Patterns](#ui-patterns)
|
|
21
21
|
|
|
@@ -25,6 +25,13 @@ This addon streamlines the integration of Drupal Single Directory Components (SD
|
|
|
25
25
|
|
|
26
26
|
This Storybook addon makes it easy to integrate Drupal Single Directory Components (SDC) into Storybook using YAML configurations and Twig templates. It dynamically loads components, allowing you to quickly create and manage stories with minimal configuration.
|
|
27
27
|
|
|
28
|
+
**It is still regular Storybook** but now with the added option to import and manage Drupal Single Directory Components (SDC).
|
|
29
|
+
|
|
30
|
+
## Storybook Example Live
|
|
31
|
+
|
|
32
|
+
You can view a [live example of the SDC Addon in Storybook](https://iberdinsky-skilld.github.io/sdc-addon), hosted on GitHub Pages, showcasing components in the `/components` directory of that repository.
|
|
33
|
+
|
|
34
|
+
|
|
28
35
|
## Why Choose SDC Storybook Over Alternatives?
|
|
29
36
|
|
|
30
37
|
While solutions like [SDC Styleguide](https://www.drupal.org/project/sdc_styleguide) and [Drupal Storybook](https://www.drupal.org/project/storybook) are valuable, the SDC Storybook addon offers distinct advantages:
|
|
@@ -243,10 +250,6 @@ export default {
|
|
|
243
250
|
export const Basic = {}
|
|
244
251
|
```
|
|
245
252
|
|
|
246
|
-
## Storybook Example Live
|
|
247
|
-
|
|
248
|
-
You can view a [live example of the SDC Addon in Storybook](https://iberdinsky-skilld.github.io/sdc-addon), hosted on GitHub Pages, showcasing components in the `/components` directory of that repository.
|
|
249
|
-
|
|
250
253
|
## Known Issues
|
|
251
254
|
|
|
252
255
|
- `$ref: json-schema-definitions://` for SDC from Experience Builder is unsupported.
|