UNPKG

@amsterdam/design-system-react

Version:

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

24 lines (23 loc) 1.01 kB
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { InputHTMLAttributes } from 'react'; export declare const textInputTypes: readonly ["email", "tel", "text", "url"]; type TextInputType = (typeof textInputTypes)[number]; export type TextInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'> & { /** Whether the value fails a validation rule. */ invalid?: boolean; /** The kind of data that the user should provide. */ type?: TextInputType; }; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-input--docs Text Input docs at Amsterdam Design System} */ export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & { /** Whether the value fails a validation rule. */ invalid?: boolean; /** The kind of data that the user should provide. */ type?: TextInputType; } & import("react").RefAttributes<HTMLInputElement>>; export {};