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>
);
}











