Describes the Select component’s context, primarily used for utility logic behind the scenes.
interface LkSelectContext {
open: boolean;
setOpen: (open: boolean) => void;
triggerRef: React.RefObject<HTMLElement | null>;
contentRef: React.RefObject<HTMLDivElement | null>;
selectedValue: string;
setSelectedValue: (value: string) => void;
options: Option[];
onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
name?: string;
}
Components that use this type.
Types with similar roles.