quarkd
Version:
Mobile UI Components built on Web Components.
46 lines (45 loc) • 1.03 kB
TypeScript
import { QuarkElement } from "quarkc";
declare type autoCompleteType = "off" | "on";
export interface Props {
value?: string;
placeholder?: string;
rows?: number;
maxlength?: number;
showcount?: boolean;
autocomplete?: boolean;
disabled?: boolean;
readonly?: boolean;
id?: string;
}
export interface CustomEvent {
input: (e: {
target: {
value: string;
};
}) => void;
focus?: () => void;
blur?: () => void;
change: (e: {
target: {
value: string;
};
}) => void;
}
declare class TextArea extends QuarkElement {
name: string;
rows: number;
autosize: boolean;
placeholder: string;
maxlength: number | string;
showcount: boolean;
readonly: boolean;
disabled: boolean;
autocomplete: autoCompleteType;
id: string;
value: string;
textAreaRef: any;
componentDidMount(): void;
evenFn: (type: string) => (e: Event) => void;
render(): any;
}
export default TextArea;