UNPKG

@amsterdam/design-system-react

Version:

All React components from the Amsterdam Design System. Use it to compose pages in your website or application.

26 lines (25 loc) 1.24 kB
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { PropsWithChildren, SelectHTMLAttributes } from 'react'; export type SelectProps = { /** Whether the value fails a validation rule. */ invalid?: boolean; } & PropsWithChildren<Omit<SelectHTMLAttributes<HTMLSelectElement>, 'aria-invalid'>>; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-select--docs Select docs at Amsterdam Design System} */ export declare const Select: import("react").ForwardRefExoticComponent<{ /** Whether the value fails a validation rule. */ invalid?: boolean; } & Omit<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid"> & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLSelectElement>> & { Group: import("react").ForwardRefExoticComponent<import("./SelectOptionGroup").SelectOptionGroupProps & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLOptGroupElement>>; Option: import("react").ForwardRefExoticComponent<import("./SelectOption").SelectOptionProps & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLOptionElement>>; };