diff --git a/components/src/components/Input/Input.tsx b/components/src/components/Input/Input.tsx index 9f52bf1..cd4f953 100644 --- a/components/src/components/Input/Input.tsx +++ b/components/src/components/Input/Input.tsx @@ -22,7 +22,7 @@ type BaseProps = FieldBaseProps & { suffix?: React.ReactNode tabIndex?: NativeInputProps['tabIndex'] textTransform?: BoxProps['textTransform'] - type?: 'email' | 'number' | 'text' + type?: NativeInputProps['type'] units?: string value?: string | number onBlur?: NativeInputProps['onBlur'] @@ -47,6 +47,12 @@ type WithTypeNumber = { step?: NativeInputProps['step'] } +type WithDate = { + type?: 'datetime-local' + max?: NativeInputProps['max'] + min?: NativeInputProps['min'] +} + type Props = BaseProps & (WithTypeEmail | WithTypeText | WithTypeNumber) export const Input = React.forwardRef(