Form

Forms are the main wrapper components for form elements, with powerful customization and validation options.

The <IForm> component is a wrapper that provides proper handling of form validation and form grouping. Here are some things that are good to know:

  • All nested form components will inherit the form's disabled and readonly state
  • All nested form components will inherit the form's size variant
  • You can use the @submit binding to handle the submit event

Disabled State

Setting a form as disabled will cause all of its child inputs to be disabled. When disabled, the form cannot be submitted.

Readonly State

Setting a form as readonly will cause all of its child inputs to be readonly. When readonly, the form can still be submitted.

Size Variants

You're able to use the size modifier to control the size of your <IForm>, using one of the available sizes: sm, md, and lg. The default size is set to md.

All of the form components inside the <IForm> will inherit the parent form group's size.

Props

Slots

Events