viandwi24

Inset Panel

Cards

About

A header/body/footer panel where the body sits as a card plate inset a couple pixels from a muted shell, with an optional bottom fade and elevation depth.

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

Code

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

Usage.tsx

import {
  InsetPanel,
  InsetPanelBody,
  InsetPanelFooter,
  InsetPanelHeader,
} from "@/components/ui/inset-panel";

export default function Demo() {
  return (
    <div className="flex w-full items-center justify-center bg-background p-8 text-foreground">
      <div className="grid w-full max-w-2xl gap-5 sm:grid-cols-2">
        <InsetPanel>
          <InsetPanelHeader>Live joiners</InsetPanelHeader>
          <InsetPanelBody fade className="h-40 p-4 text-sm">
            Body runs edge to edge with a faded bottom.
          </InsetPanelBody>
          <InsetPanelFooter>
            2,846 people joined an index this week
          </InsetPanelFooter>
        </InsetPanel>
        <InsetPanel>
          <InsetPanelHeader>Keeper activity</InsetPanelHeader>
          <InsetPanelBody className="h-40 p-4 text-sm">
            No footer: the body runs to the bottom edge.
          </InsetPanelBody>
        </InsetPanel>
      </div>
    </div>
  );
}

Dependencies

More by viandwi24

View all
  • Ticker Strip

    Ticker Strip

  • Task List

    Task List

  • Aspect Ratio

    Aspect Ratio

  • Agent Card

    Agent Card

  • Allocation Bar

    Allocation Bar

  • Watchlist Item

    Watchlist Item

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    273
  • Statistics Card 7

    Statistics Card 7

    301
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    184
  • Stats cards with links

    Stats cards with links

    82
  • Weather Card

    Weather Card

    57
  • Card Studio

    Card Studio

    9