How to use the @instructure/ui-tooltip/lib/Tooltip/locator.find function in @instructure/ui-tooltip

To help you get started, we’ve selected a few @instructure/ui-tooltip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-pill / src / Pill / locator.js View on Github external
findTooltipContent: async (...args) => {
    const { element, selector, options } = parseQueryArguments(...args)
    const tooltip = await TooltipLocator.find(element, options)
    return tooltip ? tooltip.findContent(selector, options) : null
  }
})

@instructure/ui-tooltip

A component for showing small text-only overlays on hover/focus.

MIT
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis

Similar packages