Getting Started

Install

Add these lines in your Gemfile:
# Gemfile
gem "ui_bibz"
Run command:
bundle install
yarn add ui-bibz-js

Assets with webpack

Put these lines in the good place:
# app/javascript/packs/applications.js
...
require("ui-bibz-js").start()
...
# app/javascript/stylesheets/application.sass
...
@import "~ui-bibz-js/sass/ui-bibz"
...
# config/webpack/environment.js
...
const { environment } = require('@rails/webpacker')

const webpack = require('webpack')

// Ui Bibz required Jquery yet for some js libraries
environment.plugins.prepend(
    'Provide',
    new webpack.ProvidePlugin({
        $: 'jquery/src/jquery',
        jQuery: 'jquery/src/jquery',
        jquery: 'jquery/src/jquery'
    })
)
module.exports = environment
environment.loaders.delete('nodeModules')
...

Compatibility

Gem is compatible with Ruby version 2.x.x and Ruby On Rails 6.x.x.

Simple form

Gem is compatible with simple_form. All inputs fields can be used with this gem.