@manhphi1309/currency-input
v0.1.6
Published
A customizable currency input component wrapping the standard input with native `Intl.NumberFormat` handling.
Readme
@manhphi1309/currency-input
A customizable currency input component wrapping the standard input with native Intl.NumberFormat handling.
Installation
pnpm add @manhphi1309/currency-inputUsage
import { CurrencyInput } from "@manhphi1309/currency-input"
export default function App() {
return (
<CurrencyInput
currency="USD"
locale="en-US"
onValueChange={(value) => console.log(value)}
/>
)
}