TheDocumentation Index
Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
CurrencyInput component renders an input field with currency formatting, symbols, and locale-specific display patterns.

Props
| Prop | Type | Description |
|---|---|---|
currency | String | ISO 4217 currency code (e.g., “USD”, “EUR”, “JPY”) |
label | String | The label text to display for the form input element |
name | String | The unique identifier for the input element (like HTML name attribute) |
defaultValue | Number | undefined | The value of the input on the initial render. |
description | String | Instructional message to help understand the input’s purpose. |
error | Boolean | If true, shows validation message as error; if false, shows as success. Default is false. |
max | Number | Sets the upper bound of the input (handled by underlying component). |
min | Number | Sets the lower bound of the input (handled by underlying component). |
onBlur | (value: number) => void | Callback when the input loses focus. |
onChange | (value: number) => void | Callback when the value changes. |
onFocus | (value: number) => void | Callback when the input gains focus. |
placeholder | String | Text that appears when the input has no value. |
precision | Number | Sets the number of decimal places for the currency. If not provided, defaults to currency-specific precision. |
readOnly | Boolean | Determines if the field is editable. Default is false. |
required | Boolean | Determines if the required indicator should be displayed. Default is false. |
tooltip | String | Text that appears in a tooltip next to the input label. |
validationMessage | String | Text to show under the input for error/success validation. Default is ''. |
value | Number | undefined | The current value of the input |