@kelvininc/ui-components
Version:
Kelvin UI Components
21 lines (20 loc) • 821 B
TypeScript
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 text area is disabled. Default: `false`. */
disabled?: boolean;
}
export interface ITextAreaEvents {
/** Emits the current text when there's a change */
textChange: EventEmitter<string>;
}