ViewComponents for Polaris Design System
See the codePolaris ViewComponents is an implementation of the Polaris Design System using ViewComponent.

https://polarisviewcomponents.org
Render Polaris ViewComponents:
<%= polaris_card(title: "Title") do %>
<p>Card example</p>
<% end %>
Add polaris_view_components to your Gemfile:
bundle add polaris_view_components
Run installer:
bin/rails polaris_view_components:install
Check out UPGRADING.md for upgrade instructions.
To get started:
bundle installpnpm installbin/devIt will open the demo app with component previews on localhost:4000. You can change components and they will be updated on page reload. Component previews are located in demo/app/previews.
To run tests:
rake
The library follows semantic versioning. See GitHub Releases for release notes.
To draft a new release you need to run bin/release with a new version number:
bin/release VERSION
Where the VERSION is the version number you want to release. This script will update the version in the gem and push it to GitHub and Rubygems automatically.
To release a new version of npm package update the package.json file with the new version number and run:
pnpm release
After that make sure to commit changes in package.json.
Before deploying make sure to:
demo/config/master.key from 1PasswordKAMAL_REGISTRY_PASSWORD in .envThen run:
kamal deploy
The gem is available as open source under the terms of the MIT License.
Ruby
59.3%
JavaScript
22.4%
HTML
13.1%
CSS
4.6%
ViewComponents for Polaris Design System
See the codePolaris ViewComponents is an implementation of the Polaris Design System using ViewComponent.

https://polarisviewcomponents.org
Render Polaris ViewComponents:
<%= polaris_card(title: "Title") do %>
<p>Card example</p>
<% end %>
Add polaris_view_components to your Gemfile:
bundle add polaris_view_components
Run installer:
bin/rails polaris_view_components:install
Check out UPGRADING.md for upgrade instructions.
To get started:
bundle installpnpm installbin/devIt will open the demo app with component previews on localhost:4000. You can change components and they will be updated on page reload. Component previews are located in demo/app/previews.
To run tests:
rake
The library follows semantic versioning. See GitHub Releases for release notes.
To draft a new release you need to run bin/release with a new version number:
bin/release VERSION
Where the VERSION is the version number you want to release. This script will update the version in the gem and push it to GitHub and Rubygems automatically.
To release a new version of npm package update the package.json file with the new version number and run:
pnpm release
After that make sure to commit changes in package.json.
Before deploying make sure to:
demo/config/master.key from 1PasswordKAMAL_REGISTRY_PASSWORD in .envThen run:
kamal deploy
The gem is available as open source under the terms of the MIT License.
Ruby
59.3%
JavaScript
22.4%
HTML
13.1%
CSS
4.6%