Skip to content
Velkin LogoVelkin Logo
Velkin
VELKIN/UI

Modern UI components for product teams and their AI agents. Lit core, typed wrappers, live MCP.

sales@velkinui.com

Product

  • Docs
  • Components
  • Studio
  • Pricing

Resources

  • Quick start
  • Blog
  • Changelog
  • Roadmap
  • Status

Project

  • About
  • Contact
  • License
  • Privacy
  • Terms

© 2026 Velkin. MIT core · Pro licenses available.

VELKIN

Form

A form component for validation, FormData, and submit coordination.

vu-form · @velkin/react/form

Copy page

Import

React
npm i @velkin/react

import { VuForm } from "@velkin/react/form";

Examples

API

Props

PropTypeDefaultDescription
liveValidationbooleanfalseValidates and emits `vu-change` on value changes. Default: `false`.
showErrorsbooleantrueActivates error display on child fields after submit/invalid. Default: `true`.
modeVuFormMode"client"Submission mode (`client` or `server`). Default: `"client"`.
methodVuFormMethod—Native form method in server mode.
actionstring—Native form action in server mode.
targetstring—Native form target in server mode.
enctypeVuFormEnctype—Native form encoding type.
autocompleteVuFormAutocomplete—Native form autocomplete behavior.
noValidatebooleanfalseDisables native HTML constraint UI. Default: `false`.
enterSubmitbooleanfalseSubmits on Enter for non-textarea controls. Default: `false`.
resetOnSubmitbooleanfalseResets form after successful submit. Default: `false`.
csrfTokennull | stringnullOptional CSRF token value for app-level submit handling.

Events

EventDetailDescription
vu-changeVuFormChangeDetailWhen form values change in live validation mode.
vu-invalidVuFormInvalidDetailWhen aggregated validation errors change.
formdataVuFormFormDataFallbackDetailBefore client-mode submit with form data.
vu-submitVuFormSubmitDetailAfter successful client-mode submit handling.

Slots

SlotDescription
—- Form controls and actions projected into the native `<form>`.

CSS parts

PartDescription
formNative `<form>` element.

Methods

MethodDescription
checkValidity- Returns native form validity without UI reporting.
reportValidity- Returns native form validity and reports native UI messages.
requestSubmit- Requests submission using optional submitter.
reset- Resets native form and values.
submit- Submits form using mode-specific client/server flow.

Types

NameDefinition
string | null
null | string
VuFormAutocomplete
"on" | "off"
VuFormChangeDetail
{
  values: VuFormValues;
  formData: FormData;
  success: boolean;
}
VuFormEnctype
"application/x-www-form-urlencoded"
| "multipart/form-data"
| "text/plain"
VuFormFormDataFallbackDetail
{ formData: FormData; }
VuFormInvalidDetail
{ errors: string[]; }
VuFormMethod
"get" | "post"
VuFormMode
"client" | "server"
VuFormSubmitDetail
{
  values: VuFormValues;
  formData: FormData;
  success: boolean;
}

Related

Inputs

  • Advanced FilterAn advanced filter component with expression input and visual builder.
  • ButtonA clickable button component with multiple variants and states.
  • Button GroupA button group component with shared styling and optional selection.
  • CheckboxA checkbox component with label, hint, and validation.
  • Checkbox GroupA checkbox group component with shared label and validation.
  • Color AreaA two-dimensional color picker component for saturation and brightness.

Guides

  • FormsFormData, VuForm, and validation
  • EventsonVu* / v-model / e.detail
  • Appearancevariant, color, tone, size

Browse

  • Previous: File PickerEarlier in the sidebar
  • Next: InputLater in the sidebar
  • All componentsBrowse the full index