Skip to content

Primer ViewComponents

ViewComponents for the Primer Design System

Primer ViewComponents is an implementation of the Primer Design System, using ViewComponent.

This library is in pre-release development and should not be considered stable.

Usage

Render Primer ViewComponents from templates:

<%= render(Primer::CounterComponent.new(count: 25)) %>

Installation

In Gemfile, add:

gem "primer_view_components"

In config/application.rb, add after the application definition:

require "primer/view_components/engine"