// the find
baoagency/polaris_view_components
ViewComponents for Polaris Design System
Ruby gem that wraps Shopify's Polaris design system into Rails ViewComponents, letting you render Polaris UI primitives directly from ERB templates. Aimed at Rails developers building Shopify apps or internal tools that need to match the Polaris look without writing React. The ViewComponent architecture means server-rendered HTML with Stimulus for interactivity.
Uses ViewComponent properly — components are testable Ruby objects, not template partials, so you can unit test rendering without a full request cycle. Ships the full Polaris icon set as SVGs bundled with the gem, which saves the usual asset pipeline headache. Stimulus for JS behavior is the right call for a Rails-first library — no React dependency. The demo app with Lookbook-style previews makes it easy to browse components before committing.
Polaris moves fast on the React side and this gem will always lag behind — no clear policy on how quickly new components or breaking design changes get ported. Component coverage is incomplete; complex Polaris patterns like DataTable with sorting or the App Bridge navigation shell aren't here and you'll have to hand-roll them. No documentation beyond the live preview site — if a component's options aren't obvious from the ERB helpers, you're reading source. 431 stars and 66 forks is thin for a library you'd put in a production Shopify app; bus factor looks like one agency (baoagency).