pantographe / view_component-form

Rails FormBuilder for ViewComponent
MIT License
208 stars 16 forks source link

Tailwind integration #39

Open Spone opened 3 years ago

Spone commented 3 years ago

Similar to what SimpleForm does with Bootstrap, it would be great if we can find a way to "enable" a Tailwind compatible mode, where the HTML generated by the ViewComponents is compatible with Tailwind CSS.

The idea is not to add a dependency to Tailwind, but make view_component-form play nicely with Tailwind if it's already included in the project.

coder2000 commented 1 year ago

As Tailwind is more of a set of building blocks for CSS than Bootstrap is shouldn't it be integration with something like Daisy UI or Flowbite instead?

Spone commented 1 year ago

I guess my first idea was simply to allow users to easily set CSS classes for each kind of field (so that you can specify the Tailwind CSS classes).

But I'm not a Tailwind user, so feel free to suggest your ideal approach.