feat: enhance login form with sign-up input-fields and autocomplete attributes
This commit is contained in:
parent
abae5c74d5
commit
6c479e80d6
2 changed files with 74 additions and 17 deletions
|
@ -7,12 +7,14 @@ export default function LabeledInput({
|
|||
placeholder,
|
||||
value,
|
||||
name,
|
||||
autocomplete,
|
||||
}: {
|
||||
type: 'text' | 'email' | 'password';
|
||||
label: string;
|
||||
placeholder?: string;
|
||||
value?: string;
|
||||
name?: string;
|
||||
autocomplete?: string;
|
||||
}) {
|
||||
return (
|
||||
<div className='grid grid-cols-1 gap-1'>
|
||||
|
@ -24,6 +26,7 @@ export default function LabeledInput({
|
|||
defaultValue={value}
|
||||
id={name}
|
||||
name={name}
|
||||
autoComplete={autocomplete}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue