X Enterprises
nuxt-x-formkit

Currency Input

FormKit custom input type for currency amount entry with locale-aware formatting.

Currency Input

The currency FormKit input type renders a number input that displays values formatted as currency (e.g. $1,234.56) while emitting a plain numeric value to the form model. Auto-registered by the layer.

Components

<FormKit type="currency" />

<FormKit
  type="currency"
  name="amount"
  label="Amount"
  currency="USD"
  validation="required|min:1"
/>

Props

PropTypeDefaultDescription
namestringrequiredFormKit field name; value is a raw number
labelstringVisible field label
currencystring'USD'ISO 4217 currency code for formatting
localestringbrowser localeBCP 47 locale tag for number formatting
validationstringFormKit validation rules
minnumberMinimum allowed value
maxnumberMaximum allowed value

AI Context

component: FormKit type="currency"
package: "@xenterprises/nuxt-x-formkit"
use-when: Collecting monetary amounts with locale-aware display formatting in FormKit forms
Copyright © 2026