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

    12
  • Share Card

    Share Card

    3
  • Dialog

    Dialog

    2
  • Data Card

    Data Card

  • Traffic Lights

    Traffic Lights

  • Window Bar

    Window Bar

  • Tabs

    Tabs

  • Scrollable Data Table

    Scrollable Data Table

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    334
  • Photo Deck

    Photo Deck

    39
  • Approval Card

    Approval Card

    33
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    700
  • Statistics Card 10

    Statistics Card 10

    300
  • Product List 01

    Product List 01

    32
  • Weather Card

    Weather Card

    66