0.1.5 • Published 7 months ago
@solorev/currency-input v0.1.5
An accessible & unstyled Currency Input Component
Based on input-otp@1.4.1 @guilhermerodz
Its just a tiny algorithm tweek to the component and removal of autocomplete attribute. I'll try to remove all the unnecessary stuff later. Fully compatible with Shadcn Input OTP just change the imports as below
Usage
npm install @solorev/currency-input
I didn't even bother changing the exports so Import with {OTPInput}
atm
+'use client'
-import { OTPInput } from 'input-otp'
+import { OTPInput } from '@solorev/currency-otp'
function MyForm() {
return <form>
+ <OTPInput maxLength={6} render={({slots}) => (...)} />
</form>
}