Card
A glassmorphism container used to group and display content in a clear, structured, and visually appealing way.
Welcome back
Enter your credentials to access your account.
Installation
npx @glass-ui-kit/cli add cardUsage
Examples
Default
The default card uses variant="default" and padding="md", giving you the standard glass surface with comfortable spacing.
Documind Workspace
+2 joined in the last 7 days
Glass Soft
Use variant="soft" when the card should sit a little quieter in the hierarchy.
Repository
Connected to main branch
Glass Strong
Use variant="strong" when the card should feel more prominent over busy backgrounds.
Unlock Analytics
Upgrade to the Pro plan to access advanced metrics, custom reporting, and priority support.
Interactive
Use asChild when the whole card should become a semantic link or button while keeping the card styling.
Composition
Card stays layout-agnostic. It gives you a glass surface, spacing, and rounded corners, then gets out of the way.
Styling
Card exposes a small prop-first API and still keeps className as the escape hatch for layout and one-off styling.
API Reference
| Prop | Type |
|---|---|
variant | "default" | "soft" | "strong" |
padding | "none" | "sm" | "md" | "lg" |
asChild | boolean |
className | string |
Card also accepts standard div props like id, role, aria-*, and event handlers.