guilhermerodz / input-otp

One time passcode Input. Accessible & unstyled.
https://input-otp.rodz.dev
MIT License
2.35k stars 47 forks source link

Add nonce as props for inline style #48

Closed acreations closed 1 week ago

acreations commented 3 months ago

Is your feature request related to a problem? Please describe. Im using a nonce as a CSP rules for inline styles and when running this library CSP rules are complaining

Describe the solution you'd like Not sure if it is the best approach but could we have nonce as props to OTPInput and added when having inline style (on row 174 in input.tsx file)

guilhermerodz commented 1 month ago

hey @acreations I don't get exactly what this issue is about and how to reproduce.

can you clarify on that?