Component library built for Ruby on Rails with first-class support for ActionView using ViewComponent.
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,
],
};
There isn't anything to get started on yet!
- 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
The gem is available as open source under the terms of the MIT License.