UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

24 lines 1.06 kB
import * as SelectPrimitive from '@radix-ui/react-select'; export interface SelectProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> { items: { label: string; value: string; disabled?: boolean; icon?: React.ReactElement; }[]; placeholder?: string; onValueChange: (value: string) => void; value: string; triggerProps?: React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>; id?: string; /** * Where the dropdown portals to. Defaults to `document.body`. Pass the root * node of a very-high-z-index overlay (e.g. a hand-rolled modal that isn't * itself a Radix Dialog) so the dropdown renders as its descendant instead * of a document.body sibling — otherwise the dropdown's own z-index has to * out-rank the overlay's, which an astronomically-high overlay z-index * (chosen to beat arbitrary host-page content) never will. */ container?: HTMLElement | DocumentFragment | null; } //# sourceMappingURL=single-select.types.d.ts.map