( props: AriaTreeOptions<T>, state: TreeState<T>, ref: RefObject<HTMLElement | null> )
| 48 | * @param ref - The ref attached to the treegrid element. |
| 49 | */ |
| 50 | export function useTree<T>( |
| 51 | props: AriaTreeOptions<T>, |
| 52 | state: TreeState<T>, |
| 53 | ref: RefObject<HTMLElement | null> |
| 54 | ): TreeAria { |
| 55 | let {gridProps} = useGridList(props, state, ref); |
| 56 | gridProps.role = 'treegrid'; |
| 57 | |
| 58 | return { |
| 59 | gridProps |
| 60 | }; |
| 61 | } |
no test coverage detected