mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
* fix(toggle): add missing hideLabel prop * Run "yarn build:docs" * test(toggle): assert hideLabel prop * docs(toggle): add "Hidden label text" example
19 lines
394 B
Svelte
19 lines
394 B
Svelte
<script lang="ts">
|
|
import { Toggle, ToggleSkeleton } from "../types";
|
|
</script>
|
|
|
|
<Toggle labelText="Push notifications" hideLabel />
|
|
|
|
<Toggle
|
|
labelText="Push notifications"
|
|
toggled
|
|
on:toggle="{(e) => {
|
|
console.log(e.detail.toggled);
|
|
}}"
|
|
/>
|
|
|
|
<Toggle labelText="Push notifications" labelA="No" labelB="Yes" />
|
|
|
|
<Toggle labelText="Push notifications" disabled />
|
|
|
|
<ToggleSkeleton />
|