Vaadin Component Factory Toggle Button.
APACHE-2.0 License
https://vcf-toggle-button.netlify.com/
Install vcf-toggle-button
:
npm i @vaadin-component-factory/vcf-toggle-button --save
Once installed, import it in your application:
import '@vaadin-component-factory/vcf-toggle-button';
And use it:
<vcf-toggle-button></vcf-toggle-button>
label
: Provide a label for the toggle button.checked
: Changes the state of toggle button to "on".disabled
: Disables the toggle button.change
: Fires whenever the state of the toggle button is changed:document.querySelector('vcf-toggle-button').addEventListener('change', e => {
console.log(e.detail.checked);
});
Fork the vcf-toggle-button
repository and clone it locally.
Make sure you have npm installed.
When in the vcf-toggle-button
directory, run npm install
to install dependencies.
Run npm start
to open the demo.
To contribute to the component, please read the guideline first.
Apache License 2.0