diff --git a/src/components/input/NumberInput.tsx b/src/components/input/NumberInput.tsx index 231d8b24..1b5559ed 100644 --- a/src/components/input/NumberInput.tsx +++ b/src/components/input/NumberInput.tsx @@ -397,8 +397,20 @@ const NumberInput = ({
{/* Prefix Block */} {inputPrefix && ( -
- +
+ {inputPrefix}
@@ -413,6 +425,9 @@ const NumberInput = ({ 'border-success!': isValid, 'rounded-l-none!': inputPrefix, 'rounded-r-none!': inputSuffix, + 'input-disabled': disabled, + 'cursor-not-allowed': disabled, + 'bg-gray-50': disabled, }, className?.inputWrapper )} @@ -449,7 +464,14 @@ const NumberInput = ({ onFocus={onFocus} onBlur={onBlur} disabled={disabled} - className={cn('grow bg-transparent outline-none', className?.input)} + className={cn( + 'grow bg-transparent outline-none', + { + 'cursor-not-allowed': disabled, + 'text-gray-500': disabled, + }, + className?.input + )} readOnly={readOnly} inputMode='decimal' /> @@ -483,8 +505,20 @@ const NumberInput = ({ {/* Suffix Block */} {inputSuffix && ( -
- +
+ {inputSuffix}