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-avatar-image-slot

Avatar Image Slot

retab-ui/dropzone-avatar-image-slot
FreeBlock

A single replaceable image slot with a custom circular preview.

Install it

npx shadcn@latest add https://ui.retab.com/r/dropzone-avatar-image-slot.json

Source

registry/new-york-v4/blocks/dropzone-avatar-image-slot.tsxui.retab.com/r/dropzone-avatar-image-slot.json
1"use client";
2
3import { ImagePlus } from "lucide-react";
4
5import { cn } from "@/lib/utils";
6import { useDropzone } from "@/components/ui/dropzone";
7import { FileThumbnail } from "@/components/ui/file-thumbnail";
8
9import {
10 RejectionRows,
11 type DropzoneExampleProps,
12} from "./dropzone-example-shared";
13
14export function AvatarImageSlot({ className }: DropzoneExampleProps) {
15 const dropzone = useDropzone({
16 accept: "image/*,.png,.jpg,.jpeg,.webp",
17 maxFiles: 1,
18 });
19 const selectedFile = dropzone.files[0];
20
21 return (
22 <section
23 {...dropzone.getRootProps({
24 className: cn(
25 "rounded-lg border bg-muted/20 p-4 transition-colors",
26 dropzone.isDragging && "border-foreground/40 bg-accent/35",
27 className,
28 ),
29 })}
30 >
31 <input {...dropzone.getInputProps({ className: "hidden" })} />
32 <div className="flex items-center justify-between gap-3">
33 <div>
34 <div className="flex items-center gap-2 text-sm font-medium">
35 <ImagePlus className="text-muted-foreground size-4" aria-hidden />
36 Avatar image slot
37 </div>
38 <div className="text-muted-foreground mt-1 text-xs">
39 One image, replaceable by design.
40 </div>
41 </div>
42 {selectedFile ? (
43 <button
44 className="bg-background hover:bg-muted h-8 rounded-md border px-3 text-xs font-medium"
45 onClick={dropzone.clearFiles}
46 type="button"
47 >
48 Remove
49 </button>
50 ) : null}
51 </div>
52 <div
53 {...dropzone.getTriggerProps({
54 className:
55 "mt-4 grid min-h-44 cursor-pointer place-items-center rounded-md border border-dashed bg-background p-4 text-center outline-none transition-colors hover:bg-muted/40 focus-visible:ring-[3px] focus-visible:ring-ring/24",
56 })}
57 >
58 {selectedFile ? (
59 <div className="min-w-0">
60 <FileThumbnail
61 file={selectedFile.file}
62 previewAspectRatio={1}
63 className="mx-auto size-24 rounded-full"
64 />
65 <div className="mt-3 line-clamp-1 max-w-48 text-sm font-medium">
66 {selectedFile.file.name}
67 </div>
68 <div className="text-muted-foreground text-xs">
69 Click or drop to replace.
70 </div>
71 </div>
72 ) : (
73 <div>
74 <ImagePlus className="text-muted-foreground mx-auto size-8" />
75// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

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

Files it writes

  • registry/new-york-v4/blocks/dropzone-avatar-image-slot.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-12
Last confirmed
today

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
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
Disabled Dropzonedropzone-disabled-dropzoneretab-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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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