API reference: @salmonui/inputs/text-field
TextAreaPropsinterface
import type { TextAreaProps } from '@salmonui/inputs/text-field';interface TextAreaProps extends TextBaseProps, NativeTextArea {
readonly resize?: 'vertical' | 'horizontal' | 'both' | 'none' | undefined;
readonly autoResize?: boolean | undefined;
readonly ref?: Ref<HTMLTextAreaElement> | undefined;
}
| Name | Signature | Description |
|---|---|---|
labeloptionalinherited | label?: ReactNode; | |
descriptionoptionalinherited | description?: ReactNode; | |
errorMessageoptionalinherited | errorMessage?: ((ctx: { readonly errors: readonly string[]; }) => ReactNode) | ReactNode; | Error text (or a function of the errors) shown while the field is invalid. |
invalidoptionalinherited | invalid?: boolean; | Forces the error state. |
resizeoptional | readonly resize?: 'vertical' | 'horizontal' | 'both' | 'none' | undefined; | Native resize handle. Default |
autoResizeoptional | readonly autoResize?: boolean | undefined; | Grows with its content: |
refoptional | readonly ref?: Ref<HTMLTextAreaElement> | undefined; | The native |
validationoptionalinherited | validation?: FieldValidation; | Rules in the Data Grid vocabulary. |
validateOnoptionalinherited | validateOn?: ValidateOn; | When errors appear; default the |
sizeoptionalinherited | size?: FieldSize; | Metric set. Default |
valueoptionalinherited | value?: string; | |
defaultValueoptionalinherited | defaultValue?: string; | |
onValueChangeoptionalinherited | onValueChange?: ((value: string, details: TextChangeDetails) => void); | |
clearableoptionalinherited | clearable?: boolean; | Shows a clear button while there is a value; Escape clears too. |
startAdornmentoptionalinherited | startAdornment?: ReactNode; | |
endAdornmentoptionalinherited | endAdornment?: ReactNode; | |
localeTextoptionalinherited | localeText?: TextFieldLocaleText; | |
classNameoptionalinherited | className?: string; | Root class and style (the input gets every other prop). |
styleoptionalinherited | style?: CSSProperties; | |
classNamesoptionalinherited | classNames?: { readonly group?: string; readonly input?: string; readonly label?: string; readonly description?: string; readonly error?: string; }; | Part classes: |