Skip to content

Commit

Permalink
docs: add more example in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
matthprost committed Dec 20, 2024
1 parent badeddf commit 466039c
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
import type { StoryFn } from '@storybook/react'
import { Button } from '../../Button'
import { SelectInputV2 } from '../../SelectInputV2'
import { Stack } from '../../Stack'
import { Modal } from '../index'

const OPTIONS = [
{
label: 'Option 1',
value: 'option-1',
},
{
label: 'Option 2',
value: 'option-2',
},
{
label: 'Option 3',
value: 'option-3',
},
]

export const NestedModal: StoryFn = props => (
<Modal {...props} disclosure={<Button>Open Parent Modal</Button>}>
<Stack gap={1}>
Expand Down Expand Up @@ -32,6 +48,11 @@ export const NestedModal: StoryFn = props => (
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
<SelectInputV2
label="Choose an option"
name="example"
options={OPTIONS}
/>
</Modal>
</Stack>
</Modal>
Expand Down

0 comments on commit 466039c

Please sign in to comment.