diff --git a/packages/vanilla/src/components/segmented-button-group/segmented-button-group.stories.js b/packages/vanilla/src/components/segmented-button-group/segmented-button-group.stories.js index 9826d744..639579e8 100644 --- a/packages/vanilla/src/components/segmented-button-group/segmented-button-group.stories.js +++ b/packages/vanilla/src/components/segmented-button-group/segmented-button-group.stories.js @@ -1,32 +1,43 @@ export default { title: 'Patterns/Segmented Button Group', - argTypes: {}, + argTypes: { + selection: { + name: 'Selection', + description: 'Choose whether a single or multiple selections are allowed.', + control: 'radio', + options: ['single', 'multi'] + }, + }, }; -const SingleSelectTemplate = () => { + +function generateButtons(buttons) { + const html = buttons.map(({ label, value, selected, disabled}) => { + return `` + }) + return html.join("") +}; + + +const SingleSelectTemplate = ( {buttons, selection} ) => { return ` -