diff --git a/src/shared/ui/SearchBar/SearchBar.stories.svelte b/src/shared/ui/SearchBar/SearchBar.stories.svelte index 254f162..07f108f 100644 --- a/src/shared/ui/SearchBar/SearchBar.stories.svelte +++ b/src/shared/ui/SearchBar/SearchBar.stories.svelte @@ -9,8 +9,7 @@ const { Story } = defineMeta({ parameters: { docs: { description: { - component: - 'Search input with popover dropdown for results/suggestions. Features keyboard navigation (ArrowDown/Up/Enter) and auto-focus prevention on popover open. The input field serves as the popover trigger.', + component: 'Wrapper around Input with a search icon', }, story: { inline: false }, // Render stories in iframe for state isolation }, @@ -40,6 +39,6 @@ let defaultSearchValue = $state(''); }} > {#snippet template(args)} - + {/snippet} diff --git a/src/shared/ui/SearchBar/SearchBar.svelte b/src/shared/ui/SearchBar/SearchBar.svelte index 9af1cd5..9f4c655 100644 --- a/src/shared/ui/SearchBar/SearchBar.svelte +++ b/src/shared/ui/SearchBar/SearchBar.svelte @@ -1,44 +1,27 @@ - - -
-
- -
- -
+ + {#snippet leftIcon(size)} + + {/snippet} +