No release in over a year
A generator to add a simple_form config setup for tailwindCSS based forms
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17, <= 3
>= 7.0, <= 20.0

Runtime

 Project Readme

SimpleForm::Tailwind

Used to add a base simple_form config with basic tailwind classes added to the form attributes.

NOTE: This simple_form config is best used with tailwindCSS v2.0

Installation

Add this line to your application's Gemfile:

gem 'simple_form-tailwind'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install simple_form-tailwind

Usage

To use this simple_form config you need to ensure your application is using simple_form to generate it's forms. Run the generator to add the following file to your application config/initializers/simple_form_tailwind.rb

$ rails g simple_form:tailwind:install

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tarellel/simple_form-tailwind.

License

The gem is available as open source under the terms of the MIT License.