Native text-like input composed through the shared form contract.
Input keeps browser value, focus, autofill, constraint validation, and form submission behavior intact. The caller owns parsing, validation, pending lifecycle, duplicate prevention, persistence, authorization, and outcomes.
Summary
Functions
Renders one native text-like input with deterministic field relationships.
Functions
Renders one native text-like input with deterministic field relationships.
Attributes
type(:string) - Defaults to"text". Must be one of"text","email","password","search","tel","url","number","date","datetime-local","month","week", or"time".size(:atom) - Defaults to:default. Must be one of:small,:default, or:large.field(:any) - Defaults tonil.id(:string) - Defaults tonil.name(:string) - Defaults tonil.value(:any) - Defaults to{:shadcn_ui, :not_provided}.errors(:any) - Defaults to{:shadcn_ui, :not_provided}.error_mode(:atom) - Defaults to:used_input. Must be one of:used_input,:always, or:hidden.used(:boolean) - Defaults tofalse.translate_error(:any) - Defaults tonil.pending(:boolean) - Defaults tofalse.required(:boolean) - Defaults tofalse.optional(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.readonly(:boolean) - Defaults tofalse.autocomplete(:string) - Defaults tonil.inputmode(:string) - Defaults tonil.Must be one ofnil,"none","text","decimal","numeric","tel","search","email", or"url".placeholder(:string) - Defaults tonil.minlength(:integer) - Defaults tonil.maxlength(:integer) - Defaults tonil.pattern(:string) - Defaults tonil.min(:any) - Defaults tonil.max(:any) - Defaults tonil.step(:any) - Defaults tonil.form(:string) - Defaults tonil.describedby(:any) - Defaults tonil.class(:any) - Defaults tonil.field_class(:any) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["autocapitalize", "autofocus", "list", "spellcheck"].
Slots
label(required)helpleadingtrailing