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"> <

38 lines (37 loc) 1.02 kB
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<Omit<ComponentProps<'div'>, '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<FloatingProps>;