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