Back to Components
Components

Avatar Upload

Circular avatar with upload overlay, drag and drop support, and image preview.

JL

Click or drag to upload

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/avatar-upload.tsx

Installation

Using shadcn CLI

npx shadcn add avatar-upload --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge