X Enterprises
nuxt-x-formkit

Phone Input

FormKit custom input type for formatted phone number entry.

Phone Input

The phone FormKit input type provides a formatted, validated phone number field. It is auto-registered by the layer — no manual import needed.

Components

<FormKit type="phone" />

Drop-in replacement for a standard text input when collecting phone numbers. Applies formatting and validates the number format on blur.

<FormKit
  type="phone"
  name="phone"
  label="Phone Number"
  validation="required"
  placeholder="+1 (555) 000-0000"
/>

Props

PropTypeDefaultDescription
namestringrequiredFormKit field name
labelstringVisible field label
validationstringFormKit validation rules (e.g. 'required')
placeholderstringInput placeholder text
formatstring'national'Phone format: 'national', 'international', or 'e164'

AI Context

component: FormKit type="phone"
package: "@xenterprises/nuxt-x-formkit"
use-when: Collecting and validating phone numbers in FormKit forms
Copyright © 2026