Currency input preview
Enter an exact decimal amount with native forms and locale-aware currency context.
pro · Forms · primitive
When to use
- Use it when a product interface needs enter an exact decimal amount with native forms and locale-aware currency context.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than currency input.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/currency-inputImport components/ui/tidal.css, components/ui/currency-input.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/currency-input.css";
import{TidalCurrencyInput}from"./components/ui/currency-input";
export default()=><div className="tidal-scope"><TidalCurrencyInput currency={"value"} label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;API and props
TidalCurrencyInput.currency (required)stringRequired currency value accepted by this exported component.
TidalCurrencyInput.label (required)ReactNodeRequired label value accepted by this exported component.
TidalCurrencyInput.onValueChange (required)(value: string) => voidCallback invoked when the value change interaction is proposed.
TidalCurrencyInput.value (required)stringRequired value value accepted by this exported component.
TidalCurrencyInput.aria-disabledBooleanish | undefinedAccessible disabled supplied by the consumer.
TidalCurrencyInput.aria-invalidboolean | "true" | "false" | "grammar" | "spelling" | undefinedAccessible invalid supplied by the consumer.
TidalCurrencyInput.currencyDisplay"symbol" | "name" | "code" | "narrowSymbol" | undefinedOptional currency display value accepted by this exported component.
TidalCurrencyInput.descriptionReactNodeOptional description value accepted by this exported component.
TidalCurrencyInput.disabledboolean | undefinedOptional disabled value accepted by this exported component.
TidalCurrencyInput.errorReactNodeOptional error value accepted by this exported component.
TidalCurrencyInput.localestring | undefinedOptional locale value accepted by this exported component.
TidalCurrencyInput.maxstring | undefinedOptional max value accepted by this exported component.
TidalCurrencyInput.maximumFractionDigitsnumber | undefinedOptional maximum fraction digits value accepted by this exported component.
TidalCurrencyInput.minstring | undefinedOptional min value accepted by this exported component.
TidalCurrencyInput.minimumFractionDigitsnumber | undefinedOptional minimum fraction digits value accepted by this exported component.
TidalCurrencyInput.onChangeChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefinedCallback invoked when the change interaction is proposed.
TidalCurrencyInput.onInputInputEventHandler<HTMLInputElement> | undefinedCallback invoked when the input interaction is proposed.
TidalCurrencyInput.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalCurrencyInput.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
TidalCurrencyInput.stepstring | undefinedOptional step value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Keep field state, validation results, submission, and persistence in the host form workflow.