How jagthedrummer/polaris_view_helpers works
PolarisViewHelpers is a Rails view-helper gem for composing Shopify Polaris-styled interfaces. A Rails application includes the gem’s helper module; view code calls its methods, which render Polaris partials for page structure, forms, navigation, and content components. The helper also supplies a versioned Polaris stylesheet link and can read SVG icons. The excerpts show helper-to-partial rendering and gem registration, but not application call sites; the initiating view-to-helper link is therefore unverified.
Main entry points: helper.rb View helpers · polaris_view_helpers.rb Gem entry · polaris Pages and layouts · icons SVG icons
Components 10
Rails integration
- Gem entry
lib/polaris_view_helpers.rb - View helpers
lib/polaris_view_helpers/helper.rb
Page structure
- Pages and layouts
app/views/polaris - Tabs and actions
app/views/polaris
Forms and errors
- Fields and selects
app/views/polaris - Form errors
app/views/polaris
UI components
- Content elements
app/views/polaris - SVG icons
app/views/polaris/icons
Other components
- Rails view
- Polaris stylesheet
Connections 9
- Rails view → Gem entry: uses helpers
- Gem entry → View helpers: includes module
lib/polaris_view_helpers.rb - View helpers → Pages and layouts: renders
lib/polaris_view_helpers/helper.rb - View helpers → Tabs and actions: renders
lib/polaris_view_helpers/helper.rb - View helpers → Fields and selects: renders
lib/polaris_view_helpers/helper.rb - View helpers → Form errors: renders
lib/polaris_view_helpers/helper.rb - View helpers → Content elements: renders
lib/polaris_view_helpers/helper.rb - View helpers → SVG icons: reads SVG
lib/polaris_view_helpers/helper.rb - View helpers → Polaris stylesheet: links stylesheet
lib/polaris_view_helpers/helper.rb