@finastra/textarea
Version:
Textarea Web Component
23 lines (22 loc) • 1.16 kB
TypeScript
import { BaseTextarea } from './base-textarea';
/**
* @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.
*/
export declare class Textarea extends BaseTextarea {
static styles: import("lit").CSSResult;
constructor();
}
declare global {
interface HTMLElementTagNameMap {
'fds-textarea': Textarea;
}
}