2.4.1 • Published 3 years ago

@tdcerhverv/textarea v2.4.1

Weekly downloads
111
License
Apache-2.0
Repository
github
Last release
3 years ago

TextArea component

State

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

2.4.1

3 years ago

2.4.0

3 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago