Skip to content

ondras/instant-button

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
sfx
 
 
 
 
 
 
 
 

<instant-button>

Install

npm i @ondras/instant-button --registry https://npm.pkg.github.com

Include

<link rel="stylesheet" href="node_modules/@ondras/instant-button/instant-button.css" />
<script type="module"   src="node_modules/@ondras/instant-button/instant-button.js"></script>

Use

<!-- specified color -->
<instant-button style="color:#faf"></instant-button>
<instant-button style="color:gold"></instant-button>

<!-- sound file url -->
<instant-button src="sound.ogg"></instant-button>

<!-- multiple formats, pick the best one -->
<instant-button src="sound.{ogg,mp3}"></instant-button>

Example

https://ondras.github.io/instant-button/

Awesome!

Built with love (and caribbean rum) by Ondřej Žára

About

<instant-button> web component

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project