AtomicView
Component library built for Ruby on Rails with first-class support for ActionView using ViewComponent.
Installation
Install AtomicView from RubyGems by adding it to your Gemfile
, and then bundling.
# Gemfile
gem "atomic_view"
bundle install
In your tailwind.config.js
, add:
const execSync = require("child_process").execSync;
const atomicViewPath =
execSync("bundle show atomic_view", { encoding: "utf-8" }).trim() +
"/lib/atomic_view/components/**/*.{erb,rb}";
module.exports = {
content: [
// other paths...
atomicViewPath,
],
};
Getting Started
There isn't anything to get started on yet!
Leading principles
- Work with Ruby on Rails out of the box by supporting ActionView and it's helpers
- Build with accessibility and responsiveness at the forefront
- Provide really good defaults, but allow flexibility with theming and styling
License
The gem is available as open source under the terms of the MIT License.