Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Forms

Drop Zone

Drag-and-drop upload target with visual feedback.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/drop-zone

Usage

import { DropZone } from "@/components/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

Color Wheel

Circular hue selector with draggable thumb.

File Trigger

Select files, folders, or capture from camera with consistent button semantics.

On this page

Installation
Usage
Props
PNG and JPEG files are accepted; other types are rejected.