Anchor ViewComponents
ViewComponents for Buoy’s Anchor Design System.
Dependencies
Installation
Add
anchor_view_componentsto your Gemfile and install:bundle add anchor_view_components && bundle installAdd
@buoysoftware/anchor-view-componentsto your package.json and install:yarn add @buoysoftware/anchor-view-components && yarnAdd Anchor’s CSS to your application layout:
<%= stylesheet_link_tag "anchor-view-components" %>Import Anchor’s Stimulus controllers and register them:
import { registerAnchorControllers } from "@buoysoftware/anchor-view-components"; registerAnchorControllers(application);Optionally, if you need Anchor’s Tailwind configuration to use its colors, fonts, and other design system values, add the following to your project’s
tailwind.config.js:presets: [require("@buoysoftware/anchor-view-components/tailwind.config.js")]
Development
Install dependencies:
yarn install
bundle install
Previewing components
To see component previews:
- Run
yarn build:css --watchin the root of the project - Go to the
demo/directory, install dependencies, and runbin/dev - See the components at http://localhost:3000
Releasing
See RELEASING.md
License
The gem is available as open source under the terms of the MIT License.