Install

Docs and specs in progress, please wait for official release announcement before using this gem

Webpacker Installation

bundle add 'matestack-ui-bootstrap'
yarn add 'matestack-ui-bootstrap'

app/views/layouts/application.html.erb

<!DOCTYPE html>
<html>
<head>
<title>Your App</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all'%>
<%= javascript_pack_tag 'application'%>
</head>
<body>
<div id="matestack-ui">
<%= yield %>
</div>
</body>
</html>

app/javascript/packs/stylesheets/application.scss

@import "~bootstrap/scss/bootstrap.scss";

app/javascript/packs/application.js

import Rails from "@rails/ujs"
// import Turbolinks from "turbolinks"
import * as ActiveStorage from "@rails/activestorage"
import "channels"
import "./stylesheets/application.scss";
import MatestackUiCore from "matestack-ui-core"
import MatestackUiBootstrap from "matestack-ui-bootstrap"
Rails.start()
// Turbolinks.start()
ActiveStorage.start()

app/assets/images/icons