Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add className props to the AiIcon.

Ivan Vasilov4ac67830e9fe
diff --git a/packages/ui/src/components/Command/Command.icons.tsx b/packages/ui/src/components/Command/Command.icons.tsx
index 9385664acb6..6c84745a927 100644
--- a/packages/ui/src/components/Command/Command.icons.tsx
+++ b/packages/ui/src/components/Command/Command.icons.tsx
@@ -1,7 +1,13 @@
import { AiIconAnimation } from '@ui/layout/ai-icon-animation'
-import React from 'react'
+import { cn } from '@ui/lib/utils'
-export const AiIcon = () => <AiIconAnimation className="mr-2" allowHoverEffect />
+interface AiIconProps {
+ className?: string
+}
+
+export const AiIcon = ({ className }: AiIconProps) => (
+ <AiIconAnimation className={cn('mr-2', className)} allowHoverEffect />
+)
export const AiIconChat = ({ loading = false }) => (
<AiIconAnimation className="ml-0.5" loading={loading} allowHoverEffect />