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

Function TreeItem

starters/docs/src/Tree.tsx:54–68  ·  view source on GitHub ↗
(props: TreeItemProps)

Source from the content-addressed store, hash-verified

52}
53
54export function TreeItem(props: TreeItemProps) {
55 let textValue = typeof props.title === 'string' ? props.title : '';
56 return (
57 <AriaTreeItem textValue={textValue} {...props}>
58 {props.title != null ? (
59 <>
60 <TreeItemContent>{props.title}</TreeItemContent>
61 {props.children}
62 </>
63 ) : (
64 props.children
65 )}
66 </AriaTreeItem>
67 );
68}
69
70export function TreeLoadMoreItem(props: TreeLoadMoreItemProps) {
71 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected