(props: ToolbarProps)
| 9 | } |
| 10 | |
| 11 | export function Toolbar(props: ToolbarProps) { |
| 12 | let {orientation = 'horizontal'} = props; |
| 13 | let ref = useRef<HTMLDivElement>(null); |
| 14 | /*- begin highlight -*/ |
| 15 | let {toolbarProps} = useToolbar(props, ref); |
| 16 | /*- end highlight -*/ |
| 17 | |
| 18 | return ( |
| 19 | <div {...toolbarProps} ref={ref} className="react-aria-Toolbar" data-orientation={orientation}> |
| 20 | {props.children} |
| 21 | </div> |
| 22 | ); |
| 23 | } |
nothing calls this directly
no test coverage detected