voter-component

0.0.4 • Public • Published

Voter

If you need to have a live voting on your website or a presentation created with code, e.g. sli.dev.

Install

npm i voter-component

Usage

import 'voter-component'
<vote-option room="my-vote-room" option="Favourite answer"></vote-option>

or with slot for custom description of option

<vote-option room="my-vote-room" option="Candy">
  <img src="candy.png" alt="candy">
</vote-option>

Replace room with your own unique name. Then use as many components with options as you need.

/voter-component/

    Package Sidebar

    Install

    npm i voter-component

    Weekly Downloads

    2

    Version

    0.0.4

    License

    none

    Unpacked Size

    5.77 kB

    Total Files

    6

    Last publish

    Collaborators

    • gautemo