cards
card shell
the frame every card is built on: a bezel holding a face. content goes on the face, buttons and context go on the strip below.
installation
new to blurrow? this sets up your project in one go: the package, the styles and the font. already done it? skip straight to usage. the installation page has the details.
bash
npx @blurrow/ui init›rather own the code? copy the source instead
let the cli copy it, along with anything it needs:
bash
npx @blurrow/ui add card-shellor by hand: drop this file into components/ui and import from there.
usage
tsx
import { CardShell } from "@blurrow/ui";tsx
<CardShell rail={<Button size="sm">open</Button>}>…</CardShell>examples
text rail
railkind="text" indents plain context to the face's text edge.
dark
props
straight from the source, so they're always up to date.
propsts
type Theme = "light" | "dark";
interface CardShellProps { theme?: Theme; /** Controls and context: actions, attribution, deltas. Lives on the chassis. */ rail?: React.ReactNode; /** "actions" for buttons; "text" for plain context, indented to the face's text edge */ railKind?: "actions" | "text"; as?: "div" | "figure" | "article"; className?: string; faceClassName?: string; children: React.ReactNode;}