alec-c4 / view_primitives
PublicA shadcn/ui-inspired component library for Rails built on ViewComponent.
ViewPrimitives is a Ruby gem for Rails web applications that provides over 90 pre-built interface components like buttons, dialogs, calendars, carousels, and data tables. Instead of installing a package, developers choose which components they want and the library copies them directly into their project as files they fully own and can customize. The components come with styling built using Tailwind CSS, and the whole library is inspired by the popular shadcn/ui design system. A simple helper method lets developers render any component with just one line of code in their views.
How It Works
You're building a web app and want polished interface elements without designing them from scratch.
With one line of code, you bring in a collection of 90+ ready-to-use interface pieces.
The library automatically sets up the styling and finds where your styles belong.
A simple command lets you browse all available pieces and add exactly what you want to your app.
Each component copies into your project as regular files you can change however you like.
Drop in a styled button with just one line of code
Add complex widgets that handle user input automatically
Show information with sortable, filterable tables and visualizations
Every button, menu, and widget follows the same beautiful design system, making your whole app feel cohesive.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.