mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
19 lines
380 B
Svelte
19 lines
380 B
Svelte
<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>
|