UNPKG

@spicy-ui/core

Version:

A themable and extensible React UI library, ready to use out of the box

24 lines (23 loc) 1.18 kB
import * as React from 'react'; import { SxProp } from '../../system'; import { AsProp, ChildrenProp, LiteralUnion } from '../../types'; declare type TextAreaSizes = 'xs' | 'sm' | 'md' | 'lg'; declare type TextAreaVariants = 'outlined' | 'filled' | 'underlined' | 'unstyled'; export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'width' | 'height' | 'size'>, AsProp, ChildrenProp, SxProp { /** If `true`, the text area will be disabled. */ isDisabled?: boolean; /** If `true`, the text area will be marked as invalid. */ isInvalid?: boolean; /** If `true`, the text area will be read only. */ isReadOnly?: boolean; /** If `true`, the text area will be required. */ isRequired?: boolean; /** Resize mode of the text area. */ resize?: 'horizontal' | 'vertical' | 'both' | 'none'; /** Size of the text area. */ size?: LiteralUnion<TextAreaSizes>; /** Variant of the text area. */ variant?: LiteralUnion<TextAreaVariants>; } export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>; export {};