mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
docs(theme): add examples
This commit is contained in:
parent
05cfeda115
commit
a97f72d3e3
8 changed files with 112 additions and 4 deletions
|
@ -1,5 +1,17 @@
|
|||
<script>
|
||||
import { Theme } from "carbon-components-svelte";
|
||||
import {
|
||||
Theme,
|
||||
RadioButtonGroup,
|
||||
RadioButton,
|
||||
} from "carbon-components-svelte";
|
||||
|
||||
let theme = "g90";
|
||||
</script>
|
||||
|
||||
<Theme theme="g90" />
|
||||
<Theme bind:theme />
|
||||
|
||||
<RadioButtonGroup legendText="Carbon theme" bind:selected="{theme}">
|
||||
{#each ["white", "g10", "g80", "g90", "g100"] as value}
|
||||
<RadioButton labelText="{value}" value="{value}" />
|
||||
{/each}
|
||||
</RadioButtonGroup>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue