WebComponent ‹Sentir—Comprendre—Connaître›, following Enrique Pardo's requirements and concept (described at https://happui.org/app/).
<happ-ui title="Color Wheel 1"
sentir="0.75" connaitre="0.75" comprendre="0.75"></happ-ui>
<happ-ui title="Color Wheel 2"
sentir="0.8" connaitre="0.45" comprendre="0.57"></happ-ui>
This webcomponent follows the open-wc recommendation.
npm i happ-ui
<script type="module">
import 'happ-ui/happ-ui.js';
</script>
<happ-ui title="Color Wheel"
sentir="0.75" comprendre="0.75" connaitre="0.75"></happ-ui>
<script type="module">
import 'happ-ui/happ-ui-dragme.js';
</script>
<happ-ui-dragme title="Color Wheel with Draggable Pistils"
sentir="0.75" comprendre="0.75" connaitre="0.75"></happ-ui-dragme>
<div id="happ-contactsheet" title="Contact sheet with 8x5 happ-ui + happ-ui-dragme">
<happ-contactsheet></happ-contactsheet>
</div>
To run a local instance of Storybook for your component, run
npm run storybook
To build a production version of Storybook, run
npm run storybook:build
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
npm run watch
To run a local development server that serves the basic demo located in index.html
.