Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

1.7 KB
Raw Blame

coss Frame

When to use

  • Bordered app surfaces around content blocks.
  • Container wrapper for data components like table, cards, and panes.

Install

npx shadcn@latest add @coss/frame

Manual deps from docs:

# No extra runtime dependency required for this primitive.

Canonical imports

import {
  Frame,
  FrameDescription,
  FrameFooter,
  FrameHeader,
  FramePanel,
  FrameTitle,
} from "@/components/ui/frame"

Minimal pattern

<Frame>
  <FrameHeader>
    <FrameTitle>Title</FrameTitle>
    <FrameDescription>Description</FrameDescription>
  </FrameHeader>
  <FramePanel>Content</FramePanel>
  <FrameFooter>Footer</FrameFooter>
</Frame>

Patterns from coss particles

Key patterns

Frame with header actions:

<Frame>
  <FrameHeader className="flex items-center justify-between">
    <div>
      <FrameTitle>Users</FrameTitle>
      <FrameDescription>Manage team members.</FrameDescription>
    </div>
    <Button size="sm">Add User</Button>
  </FrameHeader>
  <FramePanel>{/* Table or list content */}</FramePanel>
  <FrameFooter>
    <p className="text-muted-foreground text-sm">Showing 1-10 of 100</p>
  </FrameFooter>
</Frame>

Use Frame to normalize border/radius around heterogeneous inner content (tables, lists, cards).

More examples

See p-frame-1 through p-frame-3 for basic and separated panel patterns.

Common pitfalls

  • Using nested frames excessively, causing dense double borders.
  • Applying frame as layout grid replacement instead of content surface wrapper.
  • Forgetting to align inner component width expectations (table/list full width).

Useful particle references

  • separated panels: p-frame-3