Этот коммит содержится в:
Maurus Decimus
2026-07-30 17:16:05 +02:00
родитель f18f3012aa
Коммит 189e270785
31 изменённых файлов: 1478 добавлений и 695 удалений
+3 -2
Просмотреть файл
@@ -41,8 +41,8 @@ const CommandDialog = ({ children, ...props }: DialogProps) => {
const CommandInput = React.forwardRef<
React.ComponentRef<typeof CommandPrimitive.Input>,
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
>(({ className, ...props }, ref) => (
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & { trailing?: React.ReactNode }
>(({ className, trailing, ...props }, ref) => (
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
<CommandPrimitive.Input
@@ -53,6 +53,7 @@ const CommandInput = React.forwardRef<
)}
{...props}
/>
{trailing}
</div>
));
CommandInput.displayName = CommandPrimitive.Input.displayName;