Skip to content

Commit

Permalink
Update Input.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
nerderlyne authored Nov 25, 2022
1 parent db6f019 commit 90eea3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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(
Expand Down

1 comment on commit 90eea3b

@vercel
Copy link

@vercel vercel bot commented on 90eea3b Nov 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

reality – ./

reality-kalico.vercel.app
reality-kali.vercel.app
reality-git-main-kalico.vercel.app

Please sign in to comment.