Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dump247/storybook-state

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dump247/storybook-state - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc