Skip to content

Commit 2d18cd3

Browse files
committed
chore: update combobox
1 parent 4ef9a08 commit 2d18cd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/nuxt-ts/pages/combobox.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import * as combobox from "@zag-js/combobox"
33
import { comboboxControls, comboboxData } from "@zag-js/shared"
44
import { normalizeProps, useMachine } from "@zag-js/vue"
5+
import { XIcon } from "lucide-vue-next"
56
import { matchSorter } from "match-sorter"
67
78
const controls = useControls(comboboxControls)
@@ -37,7 +38,9 @@ const api = computed(() => combobox.connect(service, normalizeProps))
3738
<div>
3839
<button @click="() => api.setValue(['TG'])">Set to Togo</button>
3940
<button data-testid="clear-value-button" @click="() => api.clearValue()">Clear Value</button>
40-
<button v-bind="api.getClearTriggerProps()">Clear Trigger</button>
41+
<button v-bind="api.getClearTriggerProps()">
42+
<XIcon />
43+
</button>
4144
<br />
4245

4346
<div v-bind="api.getRootProps()">

0 commit comments

Comments
 (0)