Skip to content

Frame

A framed container for grouping related information.

Installation

pnpm dlx shadcn@latest add @frontal-labs/frame

Usage

import {
  Frame,
  FrameDescription,
  FrameFooter,
  FrameHeader,
  FramePanel,
  FrameTitle,
} from "@/components/ui/frame";
<Frame>
  <FrameHeader>
    <FrameTitle>Title</FrameTitle>
    <FrameDescription>Description</FrameDescription>
  </FrameHeader>
  <FramePanel>Content</FramePanel>
  <FrameFooter>Footer</FrameFooter>
</Frame>

API Reference

Frame

The main container component for grouping related information.

FramePanel

A panel container for frame content.

<FramePanel>Content</FramePanel>

FrameHeader

Header section for the frame.

<FrameHeader>
  <FrameTitle>Title</FrameTitle>
  <FrameDescription>Description</FrameDescription>
</FrameHeader>

FrameTitle

Title text for the frame header.

<FrameTitle>Title</FrameTitle>

FrameDescription

Description text for the frame header.

<FrameDescription>Description</FrameDescription>

FrameFooter

Footer section for the frame.

<FrameFooter>Footer</FrameFooter>

Examples

Separated Panels

By default, multiple panels are separated with spacing between them.