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

    53
  • Glow Border

    Glow Border

    16
  • Agent Roster

    Agent Roster

    13
  • Segmented Control

    Segmented Control

    12
  • FAQ Accordion Section

    FAQ Accordion Section

    3
  • API Key Field

    API Key Field

    3
  • Signature Pad

    Signature Pad

    1
  • Table Of Contents

    Table Of Contents

    1