Form

Attribute Type Documentation Default Value
Required for * :any

Form data or form struct.

as :any

Optional form name.

class :any
rest :global
Required inner_block * :slot

Form fields and actions.

<ExoUI.Components.input name="profile[name]" value="Ada Lovelace" label="Name" placeholder="Jane Doe" />
<ExoUI.Components.input name="profile[email]" value="ada@example.com" type="email" label="Email" placeholder="jane@example.com" />
<ExoUI.Components.input name="profile[bio]" type="textarea" label="Bio" value="Product engineer focused on LiveView UI systems." rows="4" />
<ExoUI.Components.input name="profile[public]" type="checkbox" label="Public profile" checked />
<div style="display: flex; gap: 0.5rem; justify-content: flex-end;"><ExoUI.Components.button type="button" variant="ghost">Cancel</ExoUI.Components.button><ExoUI.Components.button type="submit">Save</ExoUI.Components.button></div>