diff options
Diffstat (limited to 'components/ui.tsx')
-rw-r--r-- | components/ui.tsx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/components/ui.tsx b/components/ui.tsx index 3afd97a..492bab7 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -58,12 +58,20 @@ export function Button(props: { } export function Input(props: { - label?: string, - style?: CSSProperties, - type?: string, - id?: string + label?: string; + style?: CSSProperties; + type?: string; + id?: string; + min?: number; + max?: number; }) { - return <input id={props.id} type={props.type || "text"} placeholder={props.label} spellCheck={false} style={{ + return <input + id={props.id} + type={props.type || "text"} + min={props.min} max={props.max} + placeholder={props.label} + spellCheck={false} + style={{ padding: 12, border: 0, width: "calc(100% - 24px)", |