diff --git a/web/src/components/ui/inputs/InputTagInput.tsx b/web/src/components/ui/inputs/InputTagInput.tsx index c968dd830..0296af825 100644 --- a/web/src/components/ui/inputs/InputTagInput.tsx +++ b/web/src/components/ui/inputs/InputTagInput.tsx @@ -9,17 +9,22 @@ import { inputVariants } from './Input'; // Define tag variants that will change based on input size const tagVariants = cva( - 'bg-item-select text-foreground inline-flex shrink-0 items-center gap-1 rounded px-2 truncate', + 'bg-item-select text-foreground inline-flex shrink-0 items-center gap-1 rounded px-2 truncate transition-opacity', { variants: { size: { default: 'h-5 text-sm', tall: 'h-6 text-sm', small: 'h-4 text-xs' + }, + disabled: { + true: 'opacity-80 cursor-not-allowed', + false: 'opacity-100' } }, defaultVariants: { - size: 'default' + size: 'default', + disabled: false } } ); @@ -34,7 +39,7 @@ const Tag = React.forwardRef< disabled?: boolean; } >(({ className, onRemove, children, size = 'default', disabled = false, ...props }, ref) => ( -