UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

21 lines (17 loc) 408 B
import { Key } from 'react'; import { Node } from '@react-types/shared'; import { TreeState } from '@react-stately/tree'; export interface Props<T> { /** * The contents of this menu item section */ item: Node<T>; /** * The current state of the list of items */ state: TreeState<T>; /** * Handler to be called when this element is selected */ onAction?: (key: Key) => void; }