UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

19 lines (18 loc) 776 B
import type { Placement } from '@floating-ui/core'; import type { ComponentProps, FC, PropsWithChildren, ReactNode } from 'react'; import type { DeepPartial } from '../../'; import type { FlowbiteFloatingTheme } from '../../components/Floating'; export type FlowbiteTooltipTheme = FlowbiteFloatingTheme; export interface TooltipProps extends PropsWithChildren<Omit<ComponentProps<'div'>, 'content' | 'style'>> { animation?: false | `duration-${number}`; arrow?: boolean; content: ReactNode; placement?: 'auto' | Placement; style?: 'dark' | 'light' | 'auto'; theme?: DeepPartial<FlowbiteTooltipTheme>; trigger?: 'hover' | 'click'; } /** * @see https://floating-ui.com/docs/react-dom-interactions */ export declare const Tooltip: FC<TooltipProps>;