mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-03-14 07:00:00 +01:00
add default variant to password input
This commit is contained in:
parent
7c0f3cec70
commit
aa359b7a05
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ type PasswordInputProps = Omit<ComponentProps<typeof Input>, 'type' | 'size'> &
|
||||||
size: '400' | '500';
|
size: '400' | '500';
|
||||||
};
|
};
|
||||||
export const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(
|
export const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(
|
||||||
({ variant, size, style, after, ...props }, ref) => {
|
({ variant = 'Background', size, style, after, ...props }, ref) => {
|
||||||
const paddingRight: string = size === '500' ? config.space.S300 : config.space.S200;
|
const paddingRight: string = size === '500' ? config.space.S300 : config.space.S200;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue