Getting started
Rails
Use Moments as ViewComponents on the Easol platform.
Rails ViewComponents are the Moments components for the Easol platform. They render the same markup and styles as the web components.
Add the gem, pinned to a release tag:
gem "easol-moments", git: "https://github.com/easolhq/moments.git", tag: "vX.Y.Z"Render a component. Options match the web component, in snake case:
<%= render Moments::ButtonComponent.new(variant: :secondary, tone: :neutral, type: :submit) do %>
Save
<% end %>Previews live in Lookbook.
See Web Components for the custom-element form of the same components.
Install and engine detail lives in the README on GitHub.