Welcome UI logo
FOUNDATIONSCOMPONENTSBLOG650+
10.0.1

Menu

    Actions

    • Button
    • ButtonGroup
    • Close Button
    • Link

    Data display

    • Accordion
    • Avatar
    • Badge
    • Card
    • Swiper
    • Table
    • Tag
    • VisuallyHidden

    Feedback

    • Alert
    • StickyNote

      NEW

    • Toast

    Forms

    • Checkbox
    • DatePicker
    • DateTimePicker
    • Field
    • FileDrop
    • FileUpload
    • Hint
    • InputText
    • Label
    • PasswordInput
    • Radio
    • RadioGroup
    • RadioTab
    • Search
    • Select
    • Slider
    • Textarea
    • TimePicker
    • Toggle

    Icons & logo

    • Icon
    • IconStamp

      NEW

    • Logo
    • VariantIcon
    • WelcomeLoader

    Layout

    • AspectRatio
    • Loader
    • Window

      NEW

    Navigation

    • Breadcrumb
    • DropdownMenu
    • Pagination
    • Stepper

      NEW

    • Tabs

    Overlay

    • Drawer
    • Modal
    • Popover
    • Tooltip

    Typography

    • Text

    Utilities

    • Grid background

Overview

Props

FileDrop

accept
{ 'image/*': [], } (default)
Accept
Pass a comma-separated string of file types e.g. "image/png" or "image/png,image/jpeg"
deleteButtonText
Delete (default)
string
editButtonText
Edit (default)
string
fileName
string
forceFileType
audio
video
image
handleAddFile
(event: CreateEvent | DropEvent) => void
handleRemoveFile
(event: CreateEvent | DropEvent) => void
isClearable
Boolean
isEditable
Boolean
isLoading
Boolean
name
string
onBlur
FocusEventHandler<HTMLDivElement> & (() => void)
onChange
FormEventHandler<HTMLDivElement> & ((event: CreateEvent | DropEvent) => void)
onError
ReactEventHandler<HTMLDivElement> & ((event?: string) => void) & ((err: Error) => void)
value
Required
string
FileWithPreview
wordings
WordingsType
Pass an object with optional fields title, hint, fileButtonText and/or previewButtonText (string or JSX.Element)

On this page

  • FileDrop
    • accept
    • deleteButtonText
    • editButtonText
    • fileName
    • forceFileType
    • handleAddFile
    • handleRemoveFile
    • isClearable
    • isEditable
    • isLoading
    • name
    • onBlur
    • onChange
    • onError
    • value
    • wordings
Made with by
Welcome to the jungle logo

Documentations

  • Foundations
  • Components
  • Source code

Updates

  • Releases
  • Issues

Community

  • Github
  • Twitter
  • Medium
  • Jobs