UNPKG

@activecollab/components

Version:

ActiveCollab Components

29 lines 1.08 kB
import { FC, ReactNode } from "react"; import { IOptionItemProps } from "../Option/Option"; export interface IOptionGroupProps extends IOptionItemProps { /** Options items list */ options: IOptionItemProps[]; } interface IAdditionalOptionGroupProps { /** Select type: single or multiple */ type?: "single" | "multiple"; /** Value of hovered element */ hover?: number | string | null; /** Filter for labels */ filter?: string; /** Checked values */ checked: (string | number)[]; /** Mixed options values */ mixedOptions: (string | number)[]; /** onChange callback */ onChange?: (e: (string | number)[]) => void; /** Set value of hovered element */ setHover?: (e: number | string | undefined) => void; /** Render function */ renderOptions?: (item: IOptionItemProps, index: number) => ReactNode; /** Value that represent class names */ optionGroupClassName?: string; } export declare const OptionGroup: FC<IOptionGroupProps & IAdditionalOptionGroupProps>; export {}; //# sourceMappingURL=OptionGroup.d.ts.map