mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
17 lines
375 B
Svelte
17 lines
375 B
Svelte
<script>
|
|
import {
|
|
Theme,
|
|
RadioButtonGroup,
|
|
RadioButton,
|
|
} from "carbon-components-svelte";
|
|
|
|
let theme = "g90";
|
|
</script>
|
|
|
|
<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>
|