(props)
| 21 | import {useOverlay} from '../../src/overlays/useOverlay'; |
| 22 | |
| 23 | function Example(props) { |
| 24 | let ref = useRef(); |
| 25 | let {overlayProps, underlayProps} = useOverlay(props, ref); |
| 26 | return ( |
| 27 | <div {...mergeProps(underlayProps, props.underlayProps || {})}> |
| 28 | <div ref={ref} {...overlayProps} data-testid={props['data-testid'] || 'test'}> |
| 29 | {props.children} |
| 30 | </div> |
| 31 | </div> |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | describe('useOverlay', function () { |
| 36 | describe.each` |
nothing calls this directly
no test coverage detected