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

Function Example

starters/docs/stories/Tree.stories.tsx:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14type Story = StoryFn<typeof Tree>;
15
16export const Example: Story = args => (
17 <Tree aria-label="Files" {...args}>
18 <TreeItem title="Documents">
19 <TreeItem title="Project">
20 <TreeItem title="Weekly Report" />
21 </TreeItem>
22 </TreeItem>
23 <TreeItem title="Photos">
24 <TreeItem title="Image 1" />
25 <TreeItem title="Image 2" />
26 </TreeItem>
27 </Tree>
28);
29
30Example.args = {
31 style: {height: '300px'},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected