mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
17 lines
399 B
Svelte
17 lines
399 B
Svelte
<script>
|
|
import {
|
|
Theme,
|
|
RadioButtonGroup,
|
|
RadioButton,
|
|
} from "carbon-components-svelte";
|
|
|
|
let theme = "g90";
|
|
</script>
|
|
|
|
<Theme bind:theme persist persistKey="__carbon-theme" />
|
|
|
|
<RadioButtonGroup legendText="Carbon theme" bind:selected={theme}>
|
|
{#each ["white", "g10", "g80", "g90", "g100"] as value}
|
|
<RadioButton labelText={value} {value} />
|
|
{/each}
|
|
</RadioButtonGroup>
|