aboutsummaryrefslogtreecommitdiff
path: root/components/ui.tsx
diff options
context:
space:
mode:
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 f57a90a..3fb3c86 100644
--- a/components/ui.tsx
+++ b/components/ui.tsx
@@ -94,6 +94,7 @@ export function Input(props: {
min?: number;
max?: number;
value?: string|number;
+ dark?: boolean;
}) {
return <input
id={props.id}
@@ -102,6 +103,7 @@ export function Input(props: {
placeholder={props.label}
spellCheck={false}
defaultValue={props.value ? String(props.value) : ""}
+ className={props.dark ? "dark" : "light"}
style={{
padding: 12,
border: 0,