ghaerdi

Frame

Component

About

A bordered container shell with an optional title bar, used to wrap previews, code blocks, and showcase panels with a diagonally-clipped corner border.

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

Code

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

Usage.tsx

import { Frame } from "@/components/ui/frame";
import { ArrowRight } from "lucide-react";

export default function FrameDemo() {
  return (
    <div className="flex min-h-40 w-full items-center justify-center gap-4 bg-background p-6">
      <Frame
        title="frame.preview"
        action={<ArrowRight className="size-3.5 text-primary" />}
        className="w-72"
      >
        <div className="flex flex-col gap-2 p-4">
          <h3 className="font-mono text-sm font-bold uppercase tracking-[0.15em]">
            Bordered shell
          </h3>
          <p className="text-xs leading-5 text-muted-foreground">
            Two-layer ring so the chamfer border stays crisp along the diagonal.
          </p>
        </div>
      </Frame>
    </div>
  );
}

Dependencies

More by ghaerdi

View all
  • Toast Notification

    Toast Notification

    3
  • Chart

    Chart

    2
  • Accordion

    Accordion

  • Calendar

    Calendar

  • Neon Glass Select

    Neon Glass Select

  • Skeleton

    Skeleton

  • Radio Group

    Radio Group

  • Neon Status Badge

    Neon Status Badge