Skip to content

Commit

Permalink
Propagate args to nested list
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Feb 19, 2024
1 parent 2e785cd commit 0f36714
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions storybook/storybook-react/src/OrderedList/OrderedList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const meta = {
component: OrderedList,
args: {
children: orderedList,
inverseColor: undefined,
markers: undefined,
},
argTypes: {
markers: { control: 'boolean' },
Expand Down Expand Up @@ -116,4 +118,16 @@ export const InverseColor: Story = {
</div>
),
],
render: (args) => (
<OrderedList {...args}>
<OrderedList.Item>
Stadsdeel West
<OrderedList {...args}>
<OrderedList.Item key={1.1}>Bos en Lommer</OrderedList.Item>
<OrderedList.Item key={1.2}>Oud West / De Baarsjes</OrderedList.Item>
<OrderedList.Item key={1.3}>Westerpark</OrderedList.Item>
</OrderedList>
</OrderedList.Item>
</OrderedList>
),
}

0 comments on commit 0f36714

Please sign in to comment.