ruby_ui_js v1.0.0-alpha.4
RBUI (former PhlexUI) š
A UI component library, crafted precisely for Ruby devs who want to stay organized and build modern apps, fast. ⨠Use this to build your own component library š ļø
About RBUI š
RBUI is a UI component library designed to let Ruby developers create modern, fast, and organized applications. š
Key Features:
- Built for Speed ā”: RBUI 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.
How to Use:
- 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.
Installation š
1. Install the gem
bundle add rbui
or add it to your Gemfile:
gem "rbui"
2. Run the installer:
bin/rails g rbui:install
3. Done! š
Documentation š
Visit https://rbui.dev/docs/introduction to view the full documentation, including:
- Detailed component guides
- Themes
- Lookbook
- Getting started guide
Speed Comparison šļø
RBUI, 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 š
Importmap notes:
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
License š
Licensed under the MIT license.
Ā© 2024 RBUI. All rights reserved. š
9 months ago