Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

<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

Releases

No releases published

Sponsor this project

 
Learn more about GitHub Sponsors
You can’t perform that action at this time.