Skip to content

Commit

Permalink
docs(segmented-control): add long label and aria label storybook exam…
Browse files Browse the repository at this point in the history
…ples
  • Loading branch information
cooper-joe committed Jan 8, 2024
1 parent cce94e0 commit e20c405
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/segmented-control/src/segmented-control.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
],
selected: 'DOG',
onChange: logger,
ariaLabel: 'Segmented control label',
},
}

Expand All @@ -33,3 +34,16 @@ DisabledOption.args = {
],
selected: 'THREE',
}

export const LongLabels = Template.bind({})
LongLabels.args = {
options: [
{
label: 'Program configuration, security, and distribution',
value: 'PROGRAM',
},
{ label: 'Two', value: 'TWO' },
{ label: 'Three', value: 'THREE' },
],
selected: 'PROGRAM',
}

0 comments on commit e20c405

Please sign in to comment.