@digital-health/gestalt
v0.0.6-8e483fcb
Published
Gestalt web components
Readme
@digital-health/gestalt
The Digital Health Gestalt package contains the Web Components that make up the reusable UI building blocks for all Digital Health products.
Features
- Tiny, highly optimized components built with Stencil
How to use
Vanilla HTML
Easiest way to start using Digital Health Gestalt is by adding a script tag to the CDN:
<script src="https://unpkg.com/@digital-health/[email protected]/dist/gestalt.js"></script>Any Digital Health component added to the webpage will automatically load. This includes writing the component tag directly in HTML, or using JavaScript such as document.createElement('g-avatar').
Additionally, within this package is a dist/gestalt.js file and accompanying dist/gestalt/ directory. These are the same files which are used by the CDN, and they're available in this package so they can be apart of an app's local development.
Contributing
Project setup
npm installCompiles and hot-reloads for component development
npm run storybookRuns Lint, Build, and Tests
npm run validateCompiles and minifies for production
npm run buildLints and fixes files
npm run lintRun your tests
npm run testRun your end-to-end tests
npm run test:e2eRun your unit tests
npm run test:unit