Skip to content

FileInput

Surface for accepting files
import { FileInput } from 'degen'
name
type
default
description
accept
string
-
-
autoFocus
boolean
-
-
defaultValue
{ name?: string; type: string; url: string; }
-
-
disabled
boolean
-
-
error
ReactNode
-
-
height
ConditionalStyle<Values<MapLeafNodes<{ '0': string; px: string; '0.5': string; '1': string; '1.5': string; '2': string; '2.5': string; '3': string; '3.5': string; '4': string; '5': string; '6': string; '7': string; '8': string; '9': string; '10': string; '11': string; '12': string; ... 28 more ...; none: string; }, ...
-
-
id
string
-
-
maxSize
number
-
Size in megabytes
name
string
-
-
required
boolean
-
-
tabIndex
number
-
-
onBlur
FocusEventHandler<HTMLInputElement>
-
-
onError
(error: string) => void
-
-
onChange
(file: File) => void
-
-
onFocus
FocusEventHandler<HTMLInputElement>
-
-
onReset
() => void
-
-