Understand the shadcn/ui on Rails model
mainshadcn/ui on Rails is not a traditional component library that you install as a dependency. Instead, it is a collection of reusable components designed to be copied and pasted directly into your Rails application.
Key characteristics:
- No npm dependency: You do not install it via a package manager.
- Full ownership: Once you copy a component, the code is yours to customize and own.
- Purpose: It serves as a reference and a starting point to help you build your own custom component library within a Rails environment.
- Implementation: While based on shadcn/ui, these components are adapted for Rails and may not be 1:1 copies due to the shift from React/Radix to Rails-compatible implementations, though the goal is to maintain the same API and accessibility features.