Content
Card
A glass surface that groups related content, with an optional header for a title, subtitle and action.
Group: Content. Exports: Card, CardHeader. shadcn/ui equivalent: Card (partial parity).
Usage
import { Card } from "./halaska-kit";
Card props
childrenReactNode: Content.paddingany:hoverboolean:onClick() => void: Called on click.styleCSSProperties: Inline style merged onto the root element.
CardHeader props
titlestring: Heading text.subtitlestring:actionReactNode:
Accessibility
- Renders a plain div with no role.
- A card with onClick gets the button role, takes focus and responds to Enter and Space.
- CardHeader renders its title as a div, not a heading element.
Known gaps
- No CardFooter part, and no separate CardTitle, CardDescription or CardContent parts: CardHeader takes them as props and the body is children.
Used in
Recommendation, Plan preview, Approval card, Autonomy levels, Permission scope, Task rows, Handoff, Action receipt, Error repair, Structured data, Insight cards, Agent setup
Halaska UI · Components · Patterns · Screens · Install