Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeNewProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components106

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksFile upload

File upload

A complete file selection flow with constraints, progress, and error feedback.

$pnpm dlx shadcn@latest add @uiarc/file-upload
Pattern · live

When to use

  • Uploading files with per-file progress, retry, and remove.
  • Attachments that must be validated by type and size before upload.
  • Uploads that should abort when a file is removed, via the AbortSignal.

When not to use

  • Use file-dropzone when you only need to pick files without upload state.
  • Use import-mapper when uploaded data needs column mapping.

Installation

Add File upload with the shadcn CLI, or copy the source by hand.

$pnpm dlx shadcn@latest add @uiarc/file-uploadpnpm dlx shadcn@latest add @uiarc/file-upload

Adds the block and its local dependencies, and installs motion, lucide-react. First time? Add the @uiarc registry to components.json, or use the full URL:

Usage

Use it for documents or media when people need to see upload progress and recover from invalid files.

example.tsx
1import { FileUpload } from "@/components/arc/file-upload/file-upload";2 3export function Attachments() {4  return (5    <FileUpload6      accept="image/*,.pdf"7      maxSize={10 * 1024 * 1024}8      onUpload={async (file, { onProgress, signal }) => {9        await uploadWithProgress(file, onProgress, signal);10      }}11    />12  );13}
Built fromFile pickerProgressFeedback

API reference

2 parts. The first is the root.

FileUpload

A dropzone with a file list that validates type and size, runs your upload per file with progress, and supports retry and remove.

PropTypeDefaultDescription
acceptstring–Comma-separated extensions or MIME types, including wildcards like image/*. Rejected files stay listed with an error.
maxSizenumber–Maximum size in bytes. Larger files are listed with an error.
multiplebooleantrueAllows several files. When false a new file replaces the old one.
disabledbooleanfalseDisables the dropzone and input.
labelstring"Upload files"Dropzone heading.
descriptionstring"Drop files here or browse from your device."Helper text, linked with aria-describedby.
valueFileUploadItem[]–Controlled file list.
onChange(files: FileUploadItem[]) => void–Called when files are added or removed.
onUpload(file: File, options: { onProgress: (percent: number) => void; signal: AbortSignal }) => Promise<void>–Uploads each valid file. Report 0-100 through onProgress, resolve when done, reject to mark it failed. Removing a file aborts its signal.

FileUploadItem

Item type: { id: string; file: File; error?: string }.

No props.

Keyboard interactions

EnterorSpace
Opens the file picker from the dropzone.
Tab
Moves through the dropzone and each row's retry and remove buttons.

Accessibility

  • The dropzone is role=button with aria-disabled and aria-describedby for the helper text.
  • An aria-live polite status line announces added, rejected, uploaded, failed, and removed files.
  • Retry and remove buttons are labelled with the file name.
  • After removing a file, focus moves to the neighbouring remove button or back to the dropzone.

Motion

  • The dropzone label swaps to Drop to add files while dragging; rows open and close their height on a spring.
  • One spring drives the progress bar and the counted percentage, the bar folds away once the file lands, and a check draws in.
  • Reduced motion jumps progress and replaces height and blur swaps with fades.

Responsive behavior

  • The dropzone and list fill their container; file names ellipsize on one line.
  • On touch devices the dropzone opens the native file picker, since drag and drop is desktop only.

Performance

  • Uploads run through your onUpload, one call per valid file; there is no concurrency limit, so queue large batches yourself.
  • The file list is not virtualized; keep it to a reasonable number of files.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use when files are uploaded with progress. Use file-dropzone when you only need to pick files without upload state.
  • Wire onUpload to fetch or XHR and honour the AbortSignal; without onUpload files are only listed and validated.
/components/blocks/file-upload/markdown

The full library index for assistants is at /llms.txt.

Related

File dropzoneComponentA generous target for dropping one or more files.ProgressComponentShow how much of a known task is complete.

More like this in Pro

Explore Pro
Media playerProBlockAn audio player with a living playlist and complete playback controls.AI answerProBlockOne AI answer set like a clean article: it thinks, shows its sources as small cards with colored marks, and streams a formatted answer where every citation lights the sentence it supports. Copy, regenerate with options, rate, share, page through versions and ask a related question in place.Model pickerProBlockA model picker in one quiet pill: open it to choose from featured models with a one line note each, set the reasoning effort, or browse every other model by provider, and the pill swaps to your choice in place.
PreviousSelection toolbarNextOTP input
Arc · 122 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown
Upload briefPDF or markdown, up to 10 MB.Browse