UNPKG

@studiocms/ui

Version:

The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.

19 lines (18 loc) 531 B
type SelectOption = { value: string; label: string; disabled?: boolean; }; type SelectContainer = HTMLDivElement & { button: HTMLButtonElement | null; dropdown: HTMLUListElement | null; select: HTMLSelectElement | null; }; type SelectState = { optionsMap: Record<string, SelectOption[]>; isMultipleMap: Record<string, boolean>; focusIndex: number; placeholder: string; }; type ResizeCallback = (width: number, height: number, element: Element) => void; declare function loadSelects(): void;