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

Function Tree

starters/tailwind/src/Tree.tsx:31–42  ·  view source on GitHub ↗
({children, ...props}: TreeProps<T>)

Source from the content-addressed store, hash-verified

29});
30
31export function Tree<T>({children, ...props}: TreeProps<T>) {
32 return (
33 <AriaTree
34 {...props}
35 className={composeTailwindRenderProps(
36 props.className,
37 'w-48 max-w-full overflow-auto relative border border-neutral-200 dark:border-neutral-700 rounded-lg'
38 )}>
39 {children}
40 </AriaTree>
41 );
42}
43
44const expandButton = tv({
45 extend: focusRing,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected