feat(toggle): dispatch toggle event

This commit is contained in:
Eric Liu 2021-02-03 06:04:07 -08:00
commit c0dd80d149
6 changed files with 38 additions and 11 deletions

View file

@ -4,7 +4,13 @@
<Toggle labelText="Push notifications" />
<Toggle labelText="Push notifications" toggled />
<Toggle
labelText="Push notifications"
toggled
on:toggle="{(e) => {
console.log(e.detail.toggled);
}}"
/>
<Toggle labelText="Push notifications" labelA="No" labelB="Yes" />