aboutsummaryrefslogtreecommitdiff
path: root/components/ui.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-10 11:04:37 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-10 11:04:37 +0100
commitda8d6e89ba9e70f166939f9294c4c52fd33003a1 (patch)
tree3ab911eb192941143f1b98196493d60381e9019c /components/ui.tsx
parentfa7abcaacb80eac384e771d3c0aa19185a214e8a (diff)
added autocomplete to login/register pages
Diffstat (limited to 'components/ui.tsx')
-rw-r--r--components/ui.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/ui.tsx b/components/ui.tsx
index 3fb3c86..8f16340 100644
--- a/components/ui.tsx
+++ b/components/ui.tsx
@@ -95,6 +95,7 @@ export function Input(props: {
max?: number;
value?: string|number;
dark?: boolean;
+ autocomplete?: string;
}) {
return <input
id={props.id}
@@ -104,6 +105,7 @@ export function Input(props: {
spellCheck={false}
defaultValue={props.value ? String(props.value) : ""}
className={props.dark ? "dark" : "light"}
+ autoComplete={props.autocomplete}
style={{
padding: 12,
border: 0,