lailai0916

Icon Block

Cards

About

A small rounded square that frames a single Iconify icon in a tinted "accent" or neutral "muted" surface, used for feature list bullets, stat rows, and card headers.

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

Code

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

Usage.tsx

import IconBlock from "@/components/ui/icon-block";

export default function IconBlockDemo() {
  return (
    <div className="flex min-h-[320px] w-full flex-wrap items-center justify-center gap-8 bg-background p-10 text-foreground">
      <div className="flex flex-col items-center gap-2">
        <IconBlock icon="lucide:check" />
        <span className="text-xs text-muted-foreground">accent</span>
      </div>
      <div className="flex flex-col items-center gap-2">
        <IconBlock icon="lucide:star" variant="muted" />
        <span className="text-xs text-muted-foreground">muted</span>
      </div>
      <div className="flex flex-col items-center gap-2">
        <IconBlock icon="lucide:bell" size={56} />
        <span className="text-xs text-muted-foreground">size=56</span>
      </div>
      <div className="flex flex-col items-center gap-2">
        <IconBlock
          icon="lucide:settings"
          variant="muted"
          size={56}
          iconSize={22}
        />
        <span className="text-xs text-muted-foreground">custom iconSize</span>
      </div>
    </div>
  );
}

Dependencies

More by lailai0916

View all
  • Window Panel

    Window Panel

    8
  • Dialog

    Dialog

    1
  • Window Bar

    Window Bar

  • Tabs

    Tabs

  • Scrollable Data Table

    Scrollable Data Table

  • Skip Link

    Skip Link

  • Site Header

    Site Header

  • Skeleton

    Skeleton

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 7

    Statistics Card 7

    301
  • Statistics Card 2

    Statistics Card 2

    272
  • Stats cards with links

    Stats cards with links

    82
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    183
  • Card Studio

    Card Studio

    35
  • Card

    Card

    70
  • Card

    Card

    18