@tripetto/block-textarea
Version:
Text input (multi-line) block for Tripetto.
16 lines (15 loc) • 552 B
TypeScript
/** Dependencies */
import { NodeBlock, Slots } from "@tripetto/runner";
import "./condition";
export declare abstract class Textarea extends NodeBlock<{
readonly prefill?: string;
readonly minLength?: number;
}> {
/** Contains the textarea slot with the value. */
readonly textareaSlot: import("@tripetto/runner").Value<string, Slots.Text>;
/** Contains if the block is required. */
readonly required: boolean;
/** Contains the maximum text length. */
readonly maxLength: number | undefined;
validate(): boolean;
}