uploadcn

Logo Upload

Component

About

A settings card for uploading a workspace or company logo, with live previews shown on both light and dark backgrounds.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Logo Upload to your project and fits it to your theme.

Code

How Logo Upload is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import LogoUpload from "@/components/ui/logo-upload";
import { MiB, mockAdapter, UploadError } from "@uploadcn/core";

// Simulated network: ~0.6 MB/s, and files named "corrupt" fail.
// (Same demo adapter uploadcn.dev's docs use for this component's live preview.)
const demoAdapter = mockAdapter({
  speed: 0.6 * MiB,
  latency: 300,
  fail: ({ file }) =>
    file.name.startsWith("corrupt")
      ? new UploadError("Connection reset while uploading", {
          code: "http",
          status: 500,
        })
      : null,
});

export default function LogoUploadExample() {
  return (
    <div className="w-full max-w-lg">
      <LogoUpload adapter={demoAdapter} name="Acme Inc" />
    </div>
  );
}

Dependencies

More by uploadcn

View all
  • Progress Ring Upload

    Progress Ring Upload

    8
  • Avatar Upload

    Avatar Upload

    5
  • Chat Attachments

    Chat Attachments

    2
  • Identity Verification

    Identity Verification

    1
  • Assignment Submission

    Assignment Submission

  • Document Checklist

    Document Checklist

  • Document Upload

    Document Upload

  • Video Upload

    Video Upload