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<{ '0px': string; '1px': string; '2px': string; '4px': string; '6px': string; '8px': string; '10px': string; '12px': string; '14px': string; '16px': string; '20px': string; '24px': string; '28px': string; '32px': string; '36px': string; ... 31 more ...; none: string; }, CSSVarFunc...
-
-
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
-
-