mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:41:18 +08:00
54 lines
1.3 KiB
JSON
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 }]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|