mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
feat(components): add Search component
This commit is contained in:
parent
a56e45058a
commit
8ff35b7642
7 changed files with 137 additions and 3 deletions
19
src/components/Search/Search.Story.svelte
Normal file
19
src/components/Search/Search.Story.svelte
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue