feat(component): add NumberInput

Closes #21
This commit is contained in:
Eric Liu 2019-12-29 14:08:42 -08:00
commit 4e578bc55d
17 changed files with 282 additions and 20 deletions

View file

@ -0,0 +1,23 @@
<script>
export let story = undefined;
import Layout from '../../internal/ui/Layout.svelte';
import NumberInput from './NumberInput.svelte';
import NumberInputSkeleton from './NumberInput.Skeleton.svelte';
let value = $$props.value;
</script>
<Layout>
{#if story === 'skeleton'}
<NumberInputSkeleton {...$$props} />
{:else}
<NumberInput
{...$$props}
id="slider"
bind:value
on:change={({ detail }) => {
console.log('on:change', detail);
}} />
{/if}
</Layout>