Currency Input
A component for rendering form inputs for money amounts, showing the currency in the input.
In this guide, you'll learn how to use the Currency Input component.
Was this example helpful?
Usage#
API Reference#
This component is based on the input element and supports all of its props
Prop | Type | Default |
---|---|---|
symbol | string | - |
code | string | - |
size | "small" | "base" | "base" |
disabled | boolean | false |
onInvalid | - |
Was this helpful?
Examples#
Controlled Currency Input#
Value:
Was this example helpful?
Disabled Currency Input#
Was this example helpful?
Currency Input with Error State#
Was this example helpful?
Currency Input Sizes#
Base
Was this example helpful?
Small
Was this guide helpful?