pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
21 lines (20 loc) • 617 B
TypeScript
import { ControlProps } from "../util";
export interface TextareaProps extends ControlProps {
initialValue?: string;
label?: string;
title?: string;
placeholder?: string;
autoComplete?: boolean;
cols?: number;
rows?: number;
disabled?: boolean;
minLength?: number;
maxLength?: number;
readOnly?: boolean;
resize?: "both" | "horizontal" | "vertical";
wrap?: "hard" | "soft" | "off";
autoResize?: boolean;
onChange?: (newValue: string) => void;
onEnterKey?: (value: string) => void;
}
export declare const Textarea: (props: TextareaProps) => JSX.Element;