aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/ui.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/ui.tsx b/components/ui.tsx
index e395a47..5717928 100644
--- a/components/ui.tsx
+++ b/components/ui.tsx
@@ -105,6 +105,7 @@ export function Input(props: {
value?: string|number;
dark?: boolean;
autocomplete?: string;
+ autofocus?: boolean;
}) {
return <input
id={props.id}
@@ -115,6 +116,7 @@ export function Input(props: {
defaultValue={props.value ? String(props.value) : ""}
className={props.dark ? "dark" : "light"}
autoComplete={props.autocomplete}
+ autoFocus={props.autofocus}
style={{
padding: 12,
border: 0,