-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CommandPalette): handle
empty-state
- Loading branch information
1 parent
f0b24ba
commit eecf8c5
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
docs/components/content/examples/CommandPaletteExampleEmptySlot.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<template> | ||
<UCommandPalette :groups="[]"> | ||
<template #empty-state> | ||
<div class="flex flex-col items-center justify-center gap-3"> | ||
<UIcon name="i-heroicons-magnifying-glass-20-solid" class="w-6 h-6 text-gray-400" /> | ||
<span class="text-sm text-center text-gray-900 dark:text-white">We couldn't find any items!</span> | ||
<div> | ||
<UButton label="Add item" /> | ||
<UButton label="Clear Search" class="ml-2" color="primary" variant="outline"/> | ||
</div> | ||
</div> | ||
</template> | ||
</UCommandPalette> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters