Socket
Book a DemoInstallSign in
Socket

ruby_ui

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ruby_ui

1.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

RubyUI (former PhlexUI) πŸš€

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.

Key Features:

  • 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.

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 πŸš€

[!NOTE] RubyUI 1.0 requires Ruby 3.2 or later

1. Install the gem

bundle add ruby_ui --group development --require false

or add it to your Gemfile:

gem "ruby_ui", group: :development, require: false

2. Run the installer:

bin/rails g ruby_ui:install

3. Done! πŸŽ‰

You can generate your components using ruby_ui:component generator.

bin/rails g ruby_ui:component Accordion

Documentation πŸ“–

Visit https://rubyui.com/docs/introduction to view the full documentation, including:

  • Detailed component guides
  • Themes
  • Lookbook
  • Getting started guide

Speed Comparison 🏎️

RubyUI, powered by Phlex, outperforms alternative methods:

  • Phlex: Baseline 🏁
  • ViewComponent: ~1.5x slower πŸš™
  • ERB Templates: ~5x slower 🐒

See the original view layers benchmark by @KonnorRogers and its variations.

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 RubyUI. All rights reserved. πŸ”’

FAQs

Package last updated on 21 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.