Components/Forms & inputs/FileUpload
component

FileUpload

src/components/form-controls.tsx

Import

import { FileUpload } from "@ossrandom/design-system";

Examples

Variants

↗ Playground

States

↗ Playground

API

extends BaseProps

PropType
accept string
multiple boolean
maxSize number
maxFiles number
disabled boolean
variant "drop-zone" | "button" | "picture-card"
onUpload (files: readonly File[]) => void | Promise<void>; readonly onError?: (error: { code: "size" | "type" | "count"; message: string }) => void;