feat(components): add RadioButton

This commit is contained in:
Eric Liu 2019-12-15 15:03:07 -08:00
commit bf502f904f
7 changed files with 109 additions and 0 deletions

View 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>