FileInput

This component gives you a file input component.

Installation

import {FileInput} from 'uxp/components';

Properties

Name
Type
Description

value

File | string

onChange

(file: File, isValid: boolean) => void

allowedTypes

string[]

preview

{ showName?: boolean // default false, showPreview?: boolean // default true }

className

string

dropAreaIcon

IconProp

dropAreaLabel

string

value


type

File | string

onChange


type

(file: File, isValid: boolean) => void

allowedTypes


type

string[]

preview


type

{ showName?: boolean // default false, showPreview?: boolean // default true }

className


type

string

dropAreaIcon


type

IconProp

dropAreaLabel


type

string

Last updated