| 14 | type Story = StoryFn<typeof DisclosureGroup>; |
| 15 | |
| 16 | export const Example: Story = args => ( |
| 17 | <DisclosureGroup {...args}> |
| 18 | <Disclosure id="personal"> |
| 19 | <DisclosureHeader>Personal Information</DisclosureHeader> |
| 20 | <DisclosurePanel> |
| 21 | <p>Personal information form here.</p> |
| 22 | </DisclosurePanel> |
| 23 | </Disclosure> |
| 24 | <Disclosure id="billing"> |
| 25 | <DisclosureHeader>Billing Address</DisclosureHeader> |
| 26 | <DisclosurePanel> |
| 27 | <p>Billing address form here.</p> |
| 28 | </DisclosurePanel> |
| 29 | </Disclosure> |
| 30 | </DisclosureGroup> |
| 31 | ); |
| 32 | |
| 33 | Example.args = { |
| 34 | defaultExpandedKeys: ['personal'] |
nothing calls this directly
no outgoing calls
no test coverage detected