Form

Apply
Attribute Type Documentation Default Value
id :any

HTML id attribute

class :any

additional CSS classes for the form

for :any

the datastructure for the form

as :any

the server side parameter to collect all input under

actions_align :string

alignment of form actions (between, right, center)

"between"
rest :global

the arbitrary HTML attributes to apply to the form tag

Required inner_block * :slot
actions :slot

the slot for form actions, such as a submit button

<div class="flex flex-col gap-3">
  <input type="text" placeholder="Setting value" class="input" />
</div>
<:actions>
  <.dm_btn variant="primary" type="submit">Apply</.dm_btn>
</:actions>