@studiocms/ui
Version:
The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.
20 lines (19 loc) • 564 B
TypeScript
type SearchSelectOption = {
label: string;
value: string;
disabled?: boolean;
};
type SearchSelectContainer = HTMLDivElement & {
input: HTMLInputElement | null;
dropdown: Element | null;
select: HTMLSelectElement | null;
};
type SearchSelectState = {
optionsMap: Record<string, SelectOption[]>;
isMultipleMap: Record<string, boolean>;
selectedOptionsMap: Record<string, string[]>;
placeholderMap: Record<string, string>;
focusIndex: number;
isSelectingOption: boolean;
};
declare function loadSearchSelects(): void;