@nutrition-web-components/nutri-score
v0.0.1
Published
Nutri-score Web Component
Downloads
107
Readme
Nutri-score Web Component
Installing the JavaScript Web Component
Link to it by adding the following to your <head></head>
.
<script src="https://unpkg.com/@nutrition-web-components/[email protected]/dist/nutri-score.js"></script>
The x.x.x
is the specific version of the component, you should use specifc versions to prevent against breaking changes.
Usage
<nutri-score score="A"></nutri-score>
<nutri-score score="A" vertical></nutri-score>
Integrating with a Framework
This Web Component is build with Stencil to compile the component into Web Components. And since they can be used within frameworks or in standard HTML websites the best resource to read is the Stencil documentation regarding framework integration.