({state, ...props}: {state: TabListState<object>})
| 95 | } |
| 96 | |
| 97 | function TabPanel({state, ...props}: {state: TabListState<object>}) { |
| 98 | let ref = useRef<HTMLDivElement>(null); |
| 99 | let {tabPanelProps} = useTabPanel(props, state, ref); |
| 100 | let {focusProps, isFocusVisible} = useFocusRing(); |
| 101 | |
| 102 | return ( |
| 103 | <div |
| 104 | {...mergeProps(tabPanelProps, focusProps)} |
| 105 | ref={ref} |
| 106 | className="react-aria-TabPanel" |
| 107 | data-focus-visible={isFocusVisible || undefined}> |
| 108 | {state.selectedItem?.props.children} |
| 109 | </div> |
| 110 | ); |
| 111 | } |
nothing calls this directly
no test coverage detected