feat(components): add Search component

This commit is contained in:
Eric Liu 2019-12-15 14:33:22 -08:00
commit 8ff35b7642
7 changed files with 137 additions and 3 deletions

View file

@ -0,0 +1,19 @@
<script>
export let story = undefined;
import Layout from '../../internal/ui/Layout.svelte';
import Search from './Search.svelte';
import SearchSkeleton from './Search.Skeleton.svelte';
let value = '';
</script>
<Layout>
<div>
{#if story === 'skeleton'}
<SearchSkeleton />
{:else}
<Search {...$$props} bind:value />
{/if}
</div>
</Layout>