andreaswilli / react-verification-input

🙆🏼 Customizable, masked input for React.
https://andreaswilli.github.io/react-verification-input
MIT License
216 stars 29 forks source link

`characterProps` is not exposed #141

Open andrehadianto opened 3 months ago

andrehadianto commented 3 months ago

As the title says, the character-container is not exposed as props. This forces the user to use css styling to customise the character-container's look.

Having character-container exposed would be a great addition to this wonderful code input.

A suggestion to the finalised prop:

<VerificationInput
  characterProps={{}}
  ...
/>
andreaswilli commented 3 months ago

You can pass class names to the character elements, see here: https://github.com/andreaswilli/react-verification-input?tab=readme-ov-file#custom-styling This allows you to use you own classes or use something like Tailwind.

Passing other props is currently not possible. Can you make an example of how you wanted to style the component?