EOEboh / react-one-time-password

MIT License
40 stars 9 forks source link

Add classNames Props #1

Closed Demandtech closed 7 hours ago

Demandtech commented 6 days ago

I'd like to propose adding className props to all child components. This will allow users to pass in utility classes (such as those from Tailwind CSS or other utility-based frameworks) for more granular styling control and flexibility.

Adding className props would provide:

Greater Customization

Users can apply their own styles directly to each child component, enabling easier and more precise customization.

Improved Integration:

It facilitates the use of utility-first CSS frameworks like Tailwind CSS, making the components more adaptable to various design needs.

Consistent Development Experience

Standardizing the use of className across all components will help developers know exactly how to style them.

If this proposal is approved, I would be happy to work on implementing it.

Thank you for considering this suggestion!

EOEboh commented 5 days ago

Hey @Demandtech Thank you for opening this issue. This seems like a great idea.

I’ll write a style guide this morning and get back to you later today, then you will make add the feature and make a PR

Demandtech commented 5 days ago

Okay @EOEboh, I will wait for your update.

EOEboh commented 4 days ago

Hello @Demandtech, You can go ahead and add what you've talked about. Then open a PR

Just make sure the classNames are in kebab-case. I await your PR