mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
* feat(theme): add Theme * fix(theme): fix broken type test * docs(theme): add examples * docs(theme): add description, update carbon theme link [ci skip] * docs: pre-wrap type code snippet [ci skip]
14 lines
248 B
Svelte
14 lines
248 B
Svelte
<script>
|
|
import { Theme } from "carbon-components-svelte";
|
|
</script>
|
|
|
|
<Theme
|
|
render="toggle"
|
|
toggle="{{
|
|
themes: ['g10', 'g80'],
|
|
labelA: 'Enable dark mode',
|
|
labelB: 'Enable dark mode',
|
|
hideLabel: true,
|
|
size: 'sm',
|
|
}}"
|
|
/>
|