UNPKG

@finastra/textarea

Version:

Textarea Web Component

27 lines 1.33 kB
import { __decorate } from "tslib"; import { customElement } from 'lit/decorators.js'; import { BaseTextarea } from './base-textarea'; import { styles } from './styles.css'; /** * @cssprop {color} [--fds-primary=#694ED6] - Textarea color. * @attr [label='textarea'] - Sets floating label value. * @attr [placeholder='textarea'] - Sets placeholder value displayed when input is empty. * @attr [helper='helper'] - Helper text to display below the input. Display default only when focused. * @attr [required=false] - Displays error state if value is empty and input is blurred. * @attr [dense=false] - Smaller textarea size. * @attr [labelInside=false] - Is the label included in the textarea. * @attr [charCounter=false] - Requires `maxLength`to be set. Display character counter with max length. Textareas may display an "external" or "internal" charCounter. When `true`, textareas display an external character counter by default. * @attr [maxLength=0] - Maximum length input to accept. * @attr [disabled=false] - Whether or not the input should be disabled. */ let Textarea = class Textarea extends BaseTextarea { constructor() { super(); } }; Textarea.styles = styles; Textarea = __decorate([ customElement('fds-textarea') ], Textarea); export { Textarea }; //# sourceMappingURL=textarea.js.map