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

Function TreeViewItem

packages/@react-spectrum/s2/src/TreeView.tsx:587–601  ·  view source on GitHub ↗
(props: TreeViewItemProps)

Source from the content-addressed store, hash-verified

585});
586
587export const TreeViewItem = (props: TreeViewItemProps): ReactNode => {
588 let {href} = props;
589
590 return (
591 <TreeItem
592 {...props}
593 className={renderProps =>
594 treeRow({
595 ...renderProps,
596 isLink: !!href
597 })
598 }
599 />
600 );
601};
602
603export interface TreeViewItemContentProps extends Omit<TreeItemContentProps, 'children'> {
604 /** Rendered contents of the tree item or child items. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected