Elements Form
Back to Elements

Form

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Form.Button

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.Description

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.ElementField

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
form
name
children as childrenProp
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.Field

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
form
name
children as childrenProp
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.FieldErrors

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
errorClasses
children as childrenProp
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.Fieldset

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
form
name
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.Label

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
children Snippet
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Form.Legend

Form container with validation.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.