interface TextBoxOptions
implements ComponentOptions
import { type TextBoxOptions } from "https://deno.land/x/tui@2.0.0/src/components/mod.ts";
Properties
optional
text: string | Signal<string>optional
validator: RegExp | Signal<RegExp>theme: DeepPartial<TextBoxTheme, "cursor">
optional
multiCodePointSupport: boolean | Signal<boolean>optional
lineHighlighting: boolean | Signal<boolean>Whether to highlight currently selected text row
optional
lineNumbering: boolean | Signal<boolean>Whether to number textbox rows
optional
keyboardHandler: (keyPress: KeyPressEvent) => voidFunction that defines what key does what while textbox is focused/active