lailai0916

Panel

Cards

About

A bordered container with optional header, body and footer sections for grouping related content, forms or settings inside a card-like surface.

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

Code

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

Usage.tsx

import {
  Panel,
  PanelHeader,
  PanelBody,
  PanelFooter,
} from "@/components/ui/panel";

export default function PanelDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <Panel className="w-full max-w-sm">
        <PanelHeader>
          <h3
            className="text-base font-semibold"
            style={{ color: "var(--lk-font-color-base)" }}
          >
            Profile settings
          </h3>
        </PanelHeader>
        <PanelBody>
          <p
            className="text-sm"
            style={{ color: "var(--lk-font-color-secondary)" }}
          >
            Update your name and preferences. Changes are saved automatically.
          </p>
        </PanelBody>
        <PanelFooter>
          <div className="flex items-center justify-end gap-2">
            <button
              className="rounded-md border px-3 py-1.5 text-sm"
              style={{
                color: "var(--lk-font-color-base)",
                borderColor: "var(--lk-color-emphasis-300)",
              }}
              type="button"
            >
              Cancel
            </button>
            <button
              className="rounded-md px-3 py-1.5 text-sm font-medium text-white"
              style={{ background: "var(--lk-color-primary)" }}
              type="button"
            >
              Save
            </button>
          </div>
        </PanelFooter>
      </Panel>
    </div>
  );
}

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