@tdcerhverv/textarea
v2.4.1
Published
TextArea component
Downloads
2
Maintainers
Keywords
Readme
TextArea component
State
- Test coverage: --%
- Known bugs: --
- Storybook: https://storybook.knet.lqd.dk/?path=/story/textarea--all-props
- Zeroheight: --
Usage
Import like this:
import { TextArea } from '@tdcerhverv/textarea';
Use like this:
<TextArea {...props}/>
Props
interface ITextArea extends TextareaHTMLAttributes<HTMLTextAreaElement> {
labelText?: string;
error?: string | boolean;
hideValidation?: boolean;
validateBeforeFocus?: boolean;
characterLimit?: number;
}
+ all standard attributes of HTMLTextAreaElement.
Normally validation will happens on blur
event. However in some cases validation needs to happen right away, which can be triggered with validateBeforeFocus
.
Tags
input, textarea, form, forms