mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
feat(components): add RadioButton
This commit is contained in:
parent
acbb3ace96
commit
bf502f904f
7 changed files with 109 additions and 0 deletions
19
src/components/RadioButton/RadioButton.Story.svelte
Normal file
19
src/components/RadioButton/RadioButton.Story.svelte
Normal file
|
@ -0,0 +1,19 @@
|
|||
<script>
|
||||
export let story = undefined;
|
||||
|
||||
import Layout from '../../internal/ui/Layout.svelte';
|
||||
import ListItem from '../ListItem';
|
||||
import RadioButton from './RadioButton.svelte';
|
||||
import RadioButtonSkeleton from './RadioButton.Skeleton.svelte';
|
||||
</script>
|
||||
|
||||
<Layout>
|
||||
|
||||
{#if story === 'skeleton'}
|
||||
<div>
|
||||
<RadioButtonSkeleton />
|
||||
</div>
|
||||
{:else}
|
||||
<RadioButton {...$$props} id="radio-1" />
|
||||
{/if}
|
||||
</Layout>
|
Loading…
Add table
Add a link
Reference in a new issue