Irelia view components for Ruby on Rails.
This project is still in an early stage. Documentation will be available soon.
gem "irelia"
Run bundle install
to install the dependencies
This is a helper method that will inject the Irelia stylesheets and javascripts into the head tag. It includes the Irelia CSS and JS files, as well as Font Awesome for icons and the Poppins Google font.
<!-- file: app/views/application.html.erb -->
<head>
<%= irelia_head %>
<!-- Load custom CSS after "irelia_head" to -->
</head>
Pin the Irelia javascripts in your importmap.rb
config.
pin "irelia", to: "irelia.js"
Add the Irelia registerIreliaControllers
to your controllers.js
file.
// file: app/javascripts/controllers/index.js
import { registerIreliaControllers } from "irelia";
registerIreliaControllers(application);
Restart your application and you should be good to go!
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.