BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/retab-ui/dropzone-validation-only

Validation Only

retab-ui/dropzone-validation-only
FreeBlock

Validate accepted files and rejection details without storing selected files.

Install it

npx shadcn@latest add https://ui.retab.com/r/dropzone-validation-only.json

Source

registry/new-york-v4/blocks/dropzone-validation-only.tsxui.retab.com/r/dropzone-validation-only.json
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6import {
7 useDropzone,
8 type DropzoneFileRejection,
9} from "@/components/ui/dropzone";
10
11import {
12 RejectionRows,
13 type DropzoneExampleProps,
14} from "./dropzone-example-shared";
15
16export function ValidationOnly({ className }: DropzoneExampleProps) {
17 const [lastIntake, setLastIntake] = React.useState({
18 acceptedFiles: [] as File[],
19 fileRejections: [] as DropzoneFileRejection[],
20 });
21 const dropzone = useDropzone({
22 accept: "application/pdf,.pdf",
23 files: [],
24 maxSize: 100 * 1024,
25 multiple: true,
26 onFilesChange: () => {},
27 onIntake: setLastIntake,
28 });
29
30 return (
31 <section
32 {...dropzone.getRootProps(
33 dropzone.getTriggerProps({
34 "data-slot": "dropzone",
35 className: cn(
36 "flex min-h-40 cursor-pointer flex-col justify-center rounded-lg border border-dashed bg-background p-4 transition-colors outline-none focus-visible:ring-[3px] focus-visible:ring-ring/24",
37 dropzone.isDragging && "border-foreground/40 bg-accent/35",
38 className,
39 ),
40 }),
41 )}
42 >
43 <input {...dropzone.getInputProps({ className: "hidden" })} />
44 <div className="text-sm font-medium">Validation only</div>
45 <div className="text-muted-foreground mt-1 text-xs">
46 PDF under 100 KB. Accepted files are reported, not stored.
47 </div>
48 <div className="mt-3 text-xs">
49 Accepted:{" "}
50 {lastIntake.acceptedFiles.map((file) => file.name).join(", ") || "none"}
51 </div>
52 <RejectionRows rejections={lastIntake.fileRejections} />
53 </section>
54 );
55}

What it pulls in

npm packages

  • lucide-react

Other registry items

  • @retab/dropzone
  • @retab/file-size-format
  • @retab/utils

Files it writes

  • registry/new-york-v4/blocks/dropzone-validation-only.tsx
  • registry/new-york-v4/blocks/dropzone-example-shared.tsx

Facts

Registry
retab-ui
Type
registry:block
Access
Free
Files written
2
Licence
NOASSERTION
In the index
at or before 2026-08-11
Last confirmed
yesterday

Go to the source

ui.retab.com retab-dev/retab-ui on GitHub Raw registry item This item as JSON

More from retab-ui

All 130 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Classify Consensusclassify-consensus-viewer-blockretab-uiBlocksFree1 dep · 4 files
CSV Sourcescsv-sources-blockretab-uiBlocksFreeno deps · 2 files
DOCX Sourcesdocx-sources-blockretab-uiBlocksFreeno deps · 2 files
Avatar Image Slotdropzone-avatar-image-slotretab-uiBlocksFree1 dep · 2 files
Dropzonedropzone-blockretab-uiBlocksFree1 dep · 26 files
Comparison Pairdropzone-comparison-pair-uploadretab-uiBlocksFree1 dep · 2 files
Controlled Queuedropzone-controlled-queueretab-uiBlocksFree1 dep · 2 files
Custom Thumbnail Griddropzone-custom-thumbnail-gridretab-uiBlocksFree1 dep · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex