Skip to content

Form

Form and field components on TanStack Form with validation and error display.

Install with the CLI

Copy the block into your project to own and change the code.

bunx @xerobi/ui-cli init
bunx @xerobi/ui-cli add form

Import from the package

Or use it as shipped, without copying.

import { AnyFormApi, Field, FieldAutocomplete, FieldCheckbox } from "@xerobi/ui/form"

Files

  • form/field-autocomplete.tsx
  • form/field-checkbox.tsx
  • form/field-code.tsx
  • form/field-controller.tsx
  • form/field-country-select.tsx
  • form/field-date-picker.tsx
  • form/field-editor.tsx
  • form/field-number-input.tsx
  • form/field-phone.tsx
  • form/field-radio-group.tsx
  • form/field-rating.tsx
  • form/field-select.tsx
  • form/field-slider.tsx
  • form/field-switch.tsx
  • form/field-text.tsx
  • form/field-upload.tsx
  • form/fields.tsx
  • form/form-context.tsx
  • form/form-provider.tsx
  • form/help-text.tsx
  • form/index.ts
  • form/schema-helper.ts

Components used

Search documentation

Search pages, components and blocks.