Skip to content

Commit 2cdaa41

Browse files
committed
Exclude file from input type attribute
1 parent 6dd8f20 commit 2cdaa41

File tree

1 file changed

+3
-1
lines changed
  • packages/components/src/components/Input

1 file changed

+3
-1
lines changed

packages/components/src/components/Input/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import {
1111
} from '@devup-ui/react'
1212
import { ComponentProps, useState } from 'react'
1313

14-
interface InputProps extends Omit<ComponentProps<'input'>, 'className'> {
14+
interface InputProps
15+
extends Omit<ComponentProps<'input'>, 'className' | 'type'> {
16+
type?: Exclude<ComponentProps<'input'>['type'], 'file'>
1517
typography?: keyof DevupThemeTypography
1618
error?: boolean
1719
errorMessage?: string

0 commit comments

Comments
 (0)