Rails UI

screenshot of Rails UI
rails

A collection of components based on Ruby ViewComponent & Stimulus, heavily inspired by shadcn/ui

Overview

RailsUi presents an innovative collection of UI components specifically tailored for Rails development. Drawing inspiration from shadcn-ui/ui, it embraces the familiar ERB templating system used in Rails, making it a seamless addition to any Rails application. With a focus on maintainability and modularity, RailsUi offers developers a structured and testable way to integrate UI elements into their projects.

As it is currently in the alpha phase, RailsUi introduces an organized approach for component management. Each component is encapsulated in its own folder, facilitating customization and management. This makes it easy for developers to enhance their applications with stylish, functional UI elements without the hassle of complex integration processes.

Features

  • ERB Compatibility: Utilizes ERB templates, ensuring that Rails developers can work within a familiar syntax while structuring their UI components efficiently.
  • ViewComponents Structure: Components are designed as Ruby objects, providing a maintainable and readable framework for building UI elements.
  • Folder Organization: Each UI component is housed within its own directory, simplifying management and enabling easy customization for developers.
  • Mountable Application: Easily integrate RailsUi into your application by mounting it in your router, allowing for straightforward setup and access to a comprehensive catalog of components.
  • Tailwind CSS Support: Comes with Tailwind integration, ensuring that you can leverage modern styling capabilities right out of the box.
  • CLI Integration: A generator for copying components will soon be available, streamlining the process of incorporating UI elements into your app.
  • Open Source: Available under the MIT License, RailsUi encourages contributions, making it an evolving project driven by community improvements.
rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.