UNPKG

@kadoui/react

Version:

Kadoui primitive components for React

18 lines 570 B
import { Dispatch, SetStateAction } from "react"; type MultiModeT = { multiple: true; activeChoice: string[]; setActiveChoice: Dispatch<SetStateAction<string[]>>; }; type SingleModeT = { multiple?: false; activeChoice: string | null; setActiveChoice: Dispatch<SetStateAction<string | null>>; }; type MergedModeT = SingleModeT | MultiModeT; export type ChoiceContextT = MergedModeT & { requiredOne?: boolean; }; export declare const ChoiceContext: import("react").Context<ChoiceContextT>; export {}; //# sourceMappingURL=ChoiceContext.d.ts.map