UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

23 lines (22 loc) 853 B
import type { Placement } from "@floating-ui/react"; import type { ComponentProps, Dispatch, ReactNode, SetStateAction } from "react"; import type { ThemingProps } from "../../types"; import type { FloatingArrowTheme } from "../Floating"; export interface PopoverTheme { arrow: Omit<FloatingArrowTheme, "style">; base: string; content: string; } export interface PopoverProps extends Omit<ComponentProps<"div">, "content" | "style">, ThemingProps<PopoverTheme> { arrow?: boolean; content: ReactNode; placement?: "auto" | Placement; trigger?: "hover" | "click"; initialOpen?: boolean; open?: boolean; onOpenChange?: Dispatch<SetStateAction<boolean>>; } export declare function Popover(props: PopoverProps): import("react/jsx-runtime").JSX.Element; export declare namespace Popover { var displayName: string; }