sigilUI

File Upload

Select files and show the current upload selection.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { FileUpload } from "@sigil-ui/components";

Usage

<FileUpload accept="image/*" maxSize={5_000_000} className="w-full max-w-md" />

Props

PropTypeDefaultDescription
acceptstring—Accept configuration.
multipleboolean—Multiple configuration.
maxSizenumber—Max Size configuration.
disabledboolean—Prevents user interaction when enabled.
onChange(files: File[]) => void—Called when the value changes.

Token integration

CSS VariablePurpose
--s-radius-mdRadius md
--s-borderBorder
--s-backgroundBackground
--s-duration-fastDuration fast
--s-primaryPrimary
--s-surfaceSurface
--s-text-mutedText muted
--s-textText