Getting started
Installation
Install pyro in your project via NPM or use a CDN.
sh
npm install pyro
html
<script src="https://unpkg.com/pyro/dist/all.js" type="module"></script>
<!-- importing all elements is quick, but not recommended-->
Framework & Editor integration
If using a framework like Vue or React, check the Frameworks page for better DX.
Usage
Import the components you need.
js
import 'pyro/button'
html
<script src="https://unpkg.com/pyro/dist/button.js" type="module"></script>
Use it in your project
html
<pyro-button variant="primary">Click me</pyro-button>
<!-- el.addEventListener('input', ({event}) => { event.detail }) -->
html
<pyro-button variant="primary" @click="handleClick">Click me</pyro-button>
html
<pyro-button variant="primary" onClick="handleClick">Click me</pyro-button>