MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Example

Function Example

starters/docs/stories/DisclosureGroup.stories.tsx:16–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14type Story = StoryFn<typeof DisclosureGroup>;
15
16export 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
33Example.args = {
34 defaultExpandedKeys: ['personal']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected