import type { Placement } from '@floating-ui/core'; import type { ComponentProps, FC, PropsWithChildren, ReactNode } from 'react'; export interface FlowbiteFloatingTheme { target: string; base: string; animation: string; hidden: string; style: { dark: string; light: string; auto: string; }; content: string; arrow: { base: string; style: { dark: string; light: string; auto: string; }; placement: string; }; } export interface FloatingProps extends PropsWithChildren, 'style'>> { content: ReactNode; theme: FlowbiteFloatingTheme; placement?: 'auto' | Placement; trigger?: 'hover' | 'click'; style?: 'dark' | 'light' | 'auto'; animation?: false | `duration-${number}`; arrow?: boolean; closeRequestKey?: string; } /** * @see https://floating-ui.com/docs/react-dom-interactions */ export declare const Floating: FC;