Field

Headless form field component that provides reactive properties and state. The field component takes a form store, path to field, and a scoped slot that receives a field store to display field state and handle user interactions.

<Field of="{…}" path="{…}" v-slot="field">
  <!-- Use field store here -->
</Field>

Generics

Properties

Slots

  • default - Scoped slot that receives a FieldStore with reactive field state and props

Explanation

The Field component is a headless component that doesn't render any UI itself. Instead, it provides a scoped slot that receives a FieldStore containing all the reactive state and props needed to render a form field.

The component automatically handles field registration, validation, and state management through the of prop that references the form store.

Composables

Components

Contributors

Thanks to all the contributors who helped make this page better!

  • GitHub profile picture of @fabian-hiller

Partners

Thanks to our partners who support the project ideally and financially.

Sponsors

Thanks to our GitHub sponsors who support the project financially.

  • GitHub profile picture of @vasilii-kovalev
  • GitHub profile picture of @saturnonearth
  • GitHub profile picture of @ruiaraujo012
  • GitHub profile picture of @hyunbinseo
  • GitHub profile picture of @nickytonline
  • GitHub profile picture of @KubaJastrz
  • GitHub profile picture of @andrewmd5
  • GitHub profile picture of @Thanaen
  • GitHub profile picture of @caegdeveloper
  • GitHub profile picture of @bmoyroud
  • GitHub profile picture of @dslatkin