vamsiy78

Cover Art

Component

About

A generative placeholder cover image drawn deterministically from a seed (id, name, or slug) using the theme's chart colors as color fields, rings, bars, dots, or waves, for cards, avatars, or profile covers that have no real image.

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

Code

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

Usage.tsx

import { CoverArt, type CoverArtVariant } from "@/components/ui/cover-art";

const variants: CoverArtVariant[] = ["mesh", "rings", "bars", "dots", "waves"];

export default function CoverArtDemo() {
  return (
    <div className="grid w-full max-w-3xl grid-cols-2 gap-3 sm:grid-cols-3">
      {variants.map((variant, i) => (
        <figure key={variant} className="grid gap-1.5">
          <CoverArt
            seed={`demo-${i}`}
            variant={variant}
            grid={variant === "mesh"}
            className="aspect-video rounded-xl border"
          />
          <figcaption className="text-muted-foreground text-center text-xs">
            {variant}
          </figcaption>
        </figure>
      ))}
    </div>
  );
}

More by vamsiy78

View all
  • Animated Beam

    Animated Beam

    24
  • Segmented Control

    Segmented Control

    9
  • Glow Border

    Glow Border

    8
  • Agent Roster

    Agent Roster

    8
  • FAQ Accordion Section

    FAQ Accordion Section

    3
  • Table Of Contents

    Table Of Contents

    1
  • API Key Field

    API Key Field

    1
  • Feel Script

    Feel Script