tom

Fallback Avatar

Component 15

About

A unique gradient avatar generated from a name string.

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

Code

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

Usage.tsx

"use client";

import FallbackAvatar from "@/components/ui/fallback-avatar";

function Demo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
      <div className="flex items-center gap-6 rounded-3xl border bg-card/70 p-7 shadow-sm backdrop-blur">
        <FallbackAvatar className="border shadow-md" name="spell" size={144} />
        <div className="max-w-64">
          <p className="text-sm font-medium text-muted-foreground">Hover the avatar</p>
          <h3 className="mt-1 text-2xl font-semibold tracking-tight">Animated Gradient</h3>
          <p className="mt-3 text-sm leading-6 text-muted-foreground">
            The canvas renders a deterministic gradient from the name and animates while
            active.
          </p>
        </div>
      </div>
    </div>
  );
}


export default { Demo };

More by tom

View all
  • Special Text

    Special Text

    1.1K
  • Shimmer Text

    Shimmer Text

    1.1K
  • Animated Gradient

    Animated Gradient

    963
  • Tilt Card

    Tilt Card

    874
  • Marquee

    Marquee

    778
  • Text Marquee

    Text Marquee

    751
  • QR Code

    QR Code

    451
  • Animated Checkbox

    Animated Checkbox

    384