fibo / trunx

Super Saiyan React components, son of awesome Bulma
MIT License
64 stars 14 forks source link

className prop #25

Closed fibo closed 3 years ago

fibo commented 4 years ago

add className prop to every component, in order to add a custom class

for example I added it in Icon, it can be useful to avoid a wrapper layer to add a class

davetapley commented 4 years ago

@fibo would you be open to a PR for this?

fibo commented 4 years ago

Hi, sure a PR would help. The idea is to use a similar approach as in the Icon component. Feel free to add className prop also only to the components you need.

fibo commented 4 years ago

@davetapley we have a PR here, regarding Nav component, thanks to @igaponov .

fibo commented 4 years ago

@davetapley and @igaponov , your contributions are published on npm with version 0.33.0

I will leave this issue open since the idea is to apply a className prop to all components

fibo commented 3 years ago

added className prop to almost all components https://github.com/fibo/trunx/commit/4c78e5cbcabf7070030a008b7609452e485f8bf6

fibo commented 3 years ago

just released v0.34.0 where all components accept a className prop