Polaris ViewComponentsPolaris ViewComponents is an implementation of the Polaris Design System using ViewComponent.
This library is under active development. Breaking changes are likely until stable release.
UsageRender Polaris ViewComponents:
<%= polaris_card(title: "Title") do %> <p>Card example</p> <% end %>
DevelopmentTo get started:
It will open demo app with component previews on
localhost:4000. You can change components and they will be updated on page reload. Component previews located in
To run tests:
ReleasesThe library follows semantic versioning. To draft a new release you need to run
script/releasewith a new version number:
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:
npm run release
After that make sure to commit changes in package.json.