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

Function StaticTree

packages/react-aria-components/test/Tree.test.tsx:85–110  ·  view source on GitHub ↗
({treeProps = {}, rowProps = {}})

Source from the content-addressed store, hash-verified

83};
84
85let StaticTree = ({treeProps = {}, rowProps = {}}) => (
86 <Tree
87 defaultExpandedKeys={new Set(['projects', 'projects-1'])}
88 disabledBehavior="selection"
89 aria-label="test tree"
90 onExpandedChange={onExpandedChange}
91 onSelectionChange={onSelectionChange}
92 {...treeProps}>
93 <StaticTreeItem id="Photos" textValue="Photos" {...rowProps}>
94 Photos
95 </StaticTreeItem>
96 <StaticTreeItem id="projects" textValue="Projects" title="Projects" {...rowProps}>
97 <StaticTreeItem id="projects-1" textValue="Projects-1" title="Projects-1" {...rowProps}>
98 <StaticTreeItem id="projects-1A" textValue="Projects-1A" {...rowProps}>
99 Projects-1A
100 </StaticTreeItem>
101 </StaticTreeItem>
102 <StaticTreeItem id="projects-2" textValue="Projects-2" {...rowProps}>
103 Projects-2
104 </StaticTreeItem>
105 <StaticTreeItem id="projects-3" textValue="Projects-3" {...rowProps}>
106 Projects-3
107 </StaticTreeItem>
108 </StaticTreeItem>
109 </Tree>
110);
111
112let StaticSectionTree = ({treeProps = {}, rowProps = {}}) => (
113 <Tree

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected