JSPM

@granite-elements/granite-fate-roller

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q43774F
  • License MIT

A Fate dice roller web component

Package Exports

  • @granite-elements/granite-fate-roller

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@granite-elements/granite-fate-roller) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

granite-fate-roller

A Fate dice roller

Using granite-fate-roller

To use granite-fate-roller in an element:

1. Install granite-fate-roller

Install the component using npm:

$ npm i @granite-elements/granite-fate-roller

2. Import granite-fate-roller in the element where you want to use it

Once installed, import it in your application. Usually you will simply want to import granite-fate-roller.js (wrap around spectre.css) or granite-fate-roller-min.js (wrap around spectre.min.css).

Supposing you want to import granite-fate-roller.js:

import {spectreStyles} from '@granite-elements/granite-fate-roller/granite-fate-roller.js';

3. Use the <granite-fate-roller> tag in your HTML

<granite-fate-roller skill="Flashy" bonus="2"></granite-fate-roller>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License