@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
27 lines (26 loc) • 1.16 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { TextareaHTMLAttributes } from 'react';
export type TextAreaProps = {
/** Whether the value fails a validation rule. */
invalid?: boolean;
/**
* Allows the user to resize the text box. The default is resizing in both directions.
* Note: this feature is not fully supported in Safari on iOS.
*/
resize?: 'none' | 'horizontal' | 'vertical';
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'aria-invalid'>;
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-text-area--docs Text Area docs at Amsterdam Design System}
*/
export declare const TextArea: import("react").ForwardRefExoticComponent<{
/** Whether the value fails a validation rule. */
invalid?: boolean;
/**
* Allows the user to resize the text box. The default is resizing in both directions.
* Note: this feature is not fully supported in Safari on iOS.
*/
resize?: "none" | "horizontal" | "vertical";
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "aria-invalid"> & import("react").RefAttributes<HTMLTextAreaElement>>;