@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
21 lines (20 loc) • 866 B
TypeScript
/**
* @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 = {
/** Whether the value fails a validation rule. */
invalid?: boolean;
/** The kind of data that the user should provide. */
type?: TextInputType;
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'aria-invalid'>;
export declare const TextInput: import("react").ForwardRefExoticComponent<{
/** Whether the value fails a validation rule. */
invalid?: boolean;
/** The kind of data that the user should provide. */
type?: TextInputType;
} & Omit<InputHTMLAttributes<HTMLInputElement>, "aria-invalid"> & import("react").RefAttributes<HTMLInputElement>>;
export {};