Shadwire
v0.2.0 · Rails + ViewComponent

shadcn/ui components that become your code.

Shadwire ports shadcn/ui to Ruby on Rails and keeps its Open Code approach: a CLI copies each component's source into your app, and from then on it is your code. No gem is needed at runtime.

Built on

  • Ruby on Rails 8.1
  • ViewComponent 4
  • Tailwind CSS v4
  • shadcn/ui
  • Lucide
  • Stimulus · Turbo

See them working.

The catalog goes from buttons and form controls to dialogs and sidebars. Here are a few of them, rendered live, with the code next to each one.

The code is yours.

Shadwire is not a gem your app loads at runtime. You install the component source into your app and maintain it there, changing it however your project needs.

You own it

The files are copied into your project and keep working without Shadwire installed.

Accessible by default

Every component follows the WAI-ARIA APG patterns for roles, focus and keyboard use.

Semantic tokens

Colours come from shadcn's tokens (bg-primary, text-muted-foreground…), so dark mode needs no extra work.