Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
This is NOT a component library. It's a collection of re-usable components that you can generate or copy and paste into your apps.
Pick the components you need. Copy and paste the code into your project and customize to your needs. The code is yours.
Use this as a reference to build your own component libraries.
- Built for Speed ⚡: RubyUI leverages Phlex, which is up to 12x faster than traditional Rails ERB templates.
- Stunning UI 🎨: Design beautiful, streamlined, and customizable UIs that sell your app effortlessly.
- Stay Organized 📁: Keep your UI components well-organized and easy to manage.
- Customer-Centric UX 🧑💼: Create memorable app experiences for your users.
- Completely Customizable 🔧: Full control over the design of all components.
- Minimal Dependencies 🍃: Uses custom-built Stimulus.js controllers to keep your app lean.
- Reuse with Ease ♻️: Build components once and use them seamlessly across your project.
- Find the perfect component 🔍: Browse live-embedded components on our documentation page.
- Copy the snippet 📋: Easily copy code snippets for quick implementation.
- Make it yours 🎨: Customize components using Tailwind utility classes to fit your specific needs.
bundle add ruby_ui --group development --require false
or add it to your Gemfile:
gem "ruby_ui", group: :development, require: false
bin/rails g ruby_ui:install
You can generate your components using ruby_ui:component
generator.
bin/rails g ruby_ui:component Accordion
Visit https://rubyui.com/docs/introduction to view the full documentation, including:
- Detailed component guides
- Themes
- Lookbook
- Getting started guide
RubyUI, powered by Phlex, outperforms traditional methods:
- Phlex: Baseline 🏁
- ViewComponent: 5.57x slower 🐢
- ERB Templates: 12.08x slower 🐌
Huge thanks to @KonnorRogers for running these tests 🙏
If you run into importmap issues this stackoverflow question might help: https://stackoverflow.com/questions/70548841/how-to-add-custom-js-file-to-new-rails-7-project/72855705
Licensed under the MIT license.
© 2024 RubyUI. All rights reserved. 🔒