@dump247/storybook-state
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@dump247/storybook-state", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Manage component state in storybook stories.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -38,4 +38,19 @@ # Storybook State | ||
## Extension | ||
### `withState(initialState, storyFn)` | ||
`initialState` is the initial state of the component. This is an object where each key is a | ||
state value to set. | ||
`storyFn` is the function that produces the story component. This function receives a `Store` | ||
object as the parameter. | ||
## Store API | ||
### `store.state` | ||
Object that contains the current state. | ||
### `store.set(state)` | ||
@@ -42,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14623
65