diff --git a/.changeset/witty-weeks-tap.md b/.changeset/witty-weeks-tap.md new file mode 100644 index 0000000..bb3aefc --- /dev/null +++ b/.changeset/witty-weeks-tap.md @@ -0,0 +1,5 @@ +--- +"pliny": patch +--- + +Added icon support to KBar diff --git a/packages/pliny/src/search/KBarModal.tsx b/packages/pliny/src/search/KBarModal.tsx index 196b80f..2beb718 100644 --- a/packages/pliny/src/search/KBarModal.tsx +++ b/packages/pliny/src/search/KBarModal.tsx @@ -1,3 +1,5 @@ +// noinspection TypeScriptMissingConfigOption + import { KBarPortal, KBarSearch, @@ -75,13 +77,16 @@ const RenderResults = () => { : 'text-gray-700 dark:text-gray-100 bg-transparent' }`} > -
- {item.subtitle && ( -
- {item.subtitle} -
- )} -
{item.name}
+
+ {item.icon &&
{item.icon}
} +
+ {item.subtitle && ( +
+ {item.subtitle} +
+ )} +
{item.name}
+
{item.shortcut?.length ? (