UNPKG

hoda-react

Version:

<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <

11 lines (10 loc) 633 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Floating } from '../Floating'; import { useTheme } from '../Flowbite/ThemeContext'; /** * @see https://floating-ui.com/docs/react-dom-interactions */ export const Tooltip = ({ animation = 'duration-300', arrow = true, children, content, placement = 'top', style = 'dark', trigger = 'hover', className, ...props }) => { const theme = useTheme().theme.tooltip; return (_jsx(Floating, { content: content, style: style, animation: animation, placement: placement, arrow: arrow, trigger: trigger, theme: theme, className: className, ...props, children: children })); };