storybook/examples/server-kitchen-sink/stories/addon-actions.stories.json
2020-03-23 22:09:00 -04:00

54 lines
1.3 KiB
JSON

{
"title": "Addons/Actions",
"parameters": {
"options": { "selectedPanel": "storybook/actions/panel" }
},
"stories": [
{
"name": "Hello World",
"parameters": {
"server": { "id": "addons/actions/story1" },
"actions": {
"handles": ["click"]
}
}
},
{
"name": "Multiple actions",
"parameters": {
"server": { "id": "addons/actions/story2" },
"actions": {
"handles": ["click", "contextmenu"]
}
}
},
{
"name": "Multiple actions + config",
"parameters": {
"server": { "id": "addons/actions/story3" },
"actions": {
"handles": ["click", "contextmenu", { "clearOnStoryChange": false }]
}
}
},
{
"name": "Multiple actions, object",
"parameters": {
"server": { "id": "addons/actions/story4" },
"actions": {
"handles": [{ "click": "clicked", "contextmenu": "right clicked" }]
}
}
},
{
"name": "Multiple actions, object + config",
"parameters": {
"server": { "id": "addons/actions/story6" },
"actions": {
"handles": [{ "click": "clicked", "contextmenu": "right clicked" }, { "clearOnStoryChange": false }]
}
}
}
]
}