Form Field

Attribute Type Documentation Default Value
Required field * %FormField{}
Required label * :string
type :string "text"
description :string
class :any []
placeholder :string
default_checked :boolean false
size :string "default"
default_pressed :boolean false
variant :string "default"
min :any 0
max :any 100
step :any 1
default_value :any
orientation :string "horizontal"
max_length :integer 6
pattern :string "digits"
options :list
prompt :string
value :string
disabled :boolean false
rest :global
inner_block :slot
<svg xmlns="http://www.w3.org/2000/svg" class="size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" /></svg>