mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
feat(toggle): dispatch toggle event
This commit is contained in:
parent
fed83f8bf4
commit
c0dd80d149
6 changed files with 38 additions and 11 deletions
|
@ -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" />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue