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

Function Example

starters/tailwind/stories/Tree.stories.tsx:15–27  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected