flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
12 lines (11 loc) • 582 B
text/typescript
import type { useInteractions } from "@floating-ui/react";
import type { ThemingProps } from "../../types";
import type { DropdownTheme } from "./Dropdown";
export interface DropdownContextValue extends ThemingProps<DropdownTheme> {
activeIndex: number | null;
dismissOnClick?: boolean;
getItemProps: ReturnType<typeof useInteractions>["getItemProps"];
handleSelect: (index: number | null) => void;
}
export declare const DropdownContext: import("react").Context<DropdownContextValue | undefined>;
export declare function useDropdownContext(): DropdownContextValue;