diff --git a/components/inputs/Input.tsx b/components/inputs/Input.tsx index 2a6632f..ee0d701 100644 --- a/components/inputs/Input.tsx +++ b/components/inputs/Input.tsx @@ -1,11 +1,11 @@ -import React from "react"; - interface Props { label?: string; type?: string; name?: string; onChange?: (e: React.ChangeEvent) => void; value: number | string | undefined; + min?: string | number | undefined; + checked?: boolean; onBlur?: (e: React.ChangeEvent) => void; disabled?: boolean; error?: string; @@ -21,6 +21,8 @@ const Input = (props: Props) => ( name={props.name || "text-input"} onChange={props.onChange} value={props.value} + checked={props.checked} + min={props.type === "datetime-local" ? props.min : undefined} placeholder={props.placeholder || ""} autoComplete="off" onBlur={props.onBlur} @@ -29,15 +31,16 @@ const Input = (props: Props) => ( {props.error &&
{props.error}
}