mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-03-05 05:14:08 +00:00
chore: updated Input prop from hasSilverBorder to colorVariant
This commit is contained in:
@@ -9,7 +9,7 @@ const Input = ({
|
||||
placeholder,
|
||||
maxLength,
|
||||
className,
|
||||
hasSilverBorder,
|
||||
colorVariant = 'silver',
|
||||
children,
|
||||
onChange,
|
||||
onPaste,
|
||||
@@ -17,9 +17,12 @@ const Input = ({
|
||||
}: InputProps) => {
|
||||
return (
|
||||
<input
|
||||
className={`h-[42px] w-full rounded-full border-2 px-3 outline-none dark:bg-transparent dark:text-white ${
|
||||
hasSilverBorder ? 'border-silver dark:border-silver/40' : ''
|
||||
} ${className}`}
|
||||
className={`h-[42px] w-full rounded-full border-2 px-3 outline-none dark:bg-transparent dark:text-white ${className} ${
|
||||
colorVariant === 'silver' ? 'border-silver dark:border-silver/40' : ''
|
||||
} ${colorVariant === 'jet' ? 'border-jet' : ''} ${
|
||||
colorVariant === 'gray' ? 'border-gray-5000 dark:text-silver' : ''
|
||||
}
|
||||
}`}
|
||||
type={type}
|
||||
id={id}
|
||||
name={name}
|
||||
|
||||
@@ -20,5 +20,5 @@ export type TextAreaProps = {
|
||||
|
||||
export type InputProps = TextAreaProps & {
|
||||
type: 'text' | 'number';
|
||||
hasSilverBorder?: boolean;
|
||||
colorVariant?: 'silver' | 'jet' | 'gray';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user