MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / TooltipAttrs

Function TooltipAttrs

src/test/tooltip-attributes.spec.js:9–16  ·  view source on GitHub ↗
({ id, ...anchorParams })

Source from the content-addressed store, hash-verified

7jest.useRealTimers()
8
9const TooltipAttrs = ({ id, ...anchorParams }) => (
10 <>
11 <span data-tooltip-id={id} {...anchorParams}>
12 Lorem Ipsum
13 </span>
14 <Tooltip id={id} />
15 </>
16)
17
18describe('tooltip attributes', () => {
19 test('tooltip without element reference', async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected