Skip to content

Commit

Permalink
Adds a fallback for the default slot in LuxSearchBox component
Browse files Browse the repository at this point in the history
  • Loading branch information
ishasinha1 committed Nov 9, 2024
1 parent 4434d97 commit 63e7610
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/LuxSearchBox.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
<template>
<component :is="type" class="lux-search-box">
<!-- @slot The input and its button. -->
<slot />
<slot>
<lux-input-text
id="searchbox"
name="query"
label="Search"
:hide-label="true"
placeholder="Type here!"
size="medium"
></lux-input-text>
<lux-input-button
type="button"
variation="icon"
size="medium"
icon="search"
></lux-input-button>
</slot>
</component>
</template>

Expand Down

0 comments on commit 63e7610

Please sign in to comment.