DaisyComponents is a Ruby gem that provides a collection of ViewComponents implementing the DaisyUI design system for Rails applications. It combines the power of ViewComponent, TailwindCSS, and DaisyUI to create reusable, maintainable UI components.
- Built on top of ViewComponent for component-based architecture
- Implements DaisyUI's design system, based on TailwindCSS
- Live preview and documentation with Lookbook
- Comprehensive test coverage with Minitest
Add this line to your application's Gemfile:
gem "daisy_components"
And then execute:
$ bundle install
The component library includes Lookbook for development and documentation:
- Start the development server:
$ bin/rails server
- Visit http://localhost:3000/lookbook to see the component documentation and playground.
Run the test suite:
$ bin/rails test
With coverage:
$ COVERAGE=true bin/rails test
- Fork it
- Create your feature branch (
git checkout -b feature/my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/my-new-feature
) - Create new Pull Request
The gem is available as open source under the terms of the MIT License.