Web component and interactive dice roller.
npm install vellum-dice Web component and interactive dice roller. Inspired by javalent/dice-roller.
| Attribute | Description | Default |
| ----------- | ----------------------------------------- | ------- |
| animation | Juice the roll with a flash of pre-rolls. | false |
| hidedice | Only display roll results. | false |
Add the following wherever you need a roll: .
Add the animation attribute to animate the component: .
You have a few options (choose one of these):
1. Use the script directly via a 3rd party CDN.
2. Install via npm: npm install vellum-dice.
3. Download the source manually from GitHub into your project.
Include the in your markup:
`` You have html`
type="module"
src="https://www.unpkg.com/vellum-dice@0.1.0/vellum-dice.js"
>
If you host the script as part of your project:
`html``