preskok/ui

Drop Zone

Drag-and-drop upload target with visual feedback.

Installation

pnpm dlx @preskok-org/ui@latest add drop-zone

Usage

import { DropZone } from "@/registry/preskok/ui/preskok-ui/drop-zone"
 
export function Example() {
  return (
    <DropZone onDrop={() => {}}>
      <div slot="label">Drag and drop files here</div>
      <div slot="description">or click to select files</div>
    </DropZone>
  )
}

Props

  • Inherits all react-aria-components DropZone props