@tdcerhverv/textarea
TypeScript icon, indicating that this package has built-in type declarations

2.4.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @tdcerhverv/textarea

Weekly Downloads

3

Version

2.4.1

License

Apache-2.0

Unpacked Size

40.8 kB

Total Files

10

Last publish

Collaborators

  • antongb
  • dev_jonas
  • jeppebenjaminsen
  • ahhah
  • abdok
  • mikkv
  • clausr1990
  • tdc-sigbe
  • mdige
  • nuudaybot
  • tdc-olila
  • jeroen.dk.nl
  • renand
  • stegr
  • m84100
  • m92212
  • m87979
  • vertic
  • rasladev
  • muddz
  • tajsonik
  • linnt
  • molg