Skip to content

Commit

Permalink
Merge pull request #15789 from storybookjs/upgrade_server_example
Browse files Browse the repository at this point in the history
Server: Update example to use options and labels for options controls
  • Loading branch information
shilman committed Aug 8, 2021
2 parents f9f3256 + c82f9a1 commit 72cfc54
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions examples/server-kitchen-sink/stories/addons/controls.stories.json
Expand Up @@ -38,11 +38,17 @@
},
"argTypes": {
"stock": { "control": { "type": "range", "min": 0, "max": 30, "step": 5} },
"fruit": { "control": { "type": "select", "options": {
"Apple": "apples",
"Banana": "bananas",
"Cherry": "cherries"
}} },
"fruit": {
"options": ["apples", "bananas", "cherries"],
"control": {
"type": "select",
"labels": {
"apples": "Apple",
"bananas": "Banana",
"cherries": "Cherry"
}
}
},
"colour": { "control": { "type": "color"} },
"today": { "control": { "type": "date"} }
}
Expand Down

0 comments on commit 72cfc54

Please sign in to comment.