UNPKG

@kelvininc/ui-components

Version:
23 lines (22 loc) 957 B
import { EventEmitter } from '../../stencil-public-runtime'; import { EIconName } from '../icon/icon.types'; export interface ITextArea { /** (optional) Icon to show to the left of the text field */ icon?: EIconName; /** (optional) The text to show inside the text area */ text?: string; /** (optional) The placeholder to show in the text area */ placeholder?: string; /** (optional) The maximum number of characters allowed */ maxCharLength?: number; /** (optional) If `true` the chars counter is displayed. Default: `true` */ counter?: boolean; /** (optional) If `true` the counter is always visible (not only on focus). Default: `false` */ counterAlwaysVisible?: boolean; /** (optional) If `true` the text area is disabled. Default: `false`. */ disabled?: boolean; } export interface ITextAreaEvents { /** Emits the current text when there's a change */ textChange: EventEmitter<string>; }