Packages

A TUI library for Gleam: correct Unicode, minimal-diff rendering, clean terminal teardown.

Current section

Files

Jump to
etui include etui@widgets@input_InputWidget.hrl
Raw

include/etui@widgets@input_InputWidget.hrl

-record(input_widget, {
max_length :: integer(),
placeholder :: binary(),
fg :: etui@style:color(),
bg :: etui@style:color(),
validator :: fun((binary()) -> {ok, nil} | {error, binary()}),
error_fg :: etui@style:color(),
prompt :: binary(),
password :: boolean(),
mask :: binary()
}).