Controls

Card

Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Card

Weekly digest

Beta

A short summary of what changed across your projects, every Monday morning.

Card

A large soft squircle surface, with an optional spotlight that follows the pointer.

Installation

npx shadcn@latest add ikislay/pixel-ui/card

How to use

import { Card, CardDescription, CardTitle } from "@/components/ui/card"
export function Demo() {
return (
<Card>
<CardTitle>Storage</CardTitle>
<CardDescription>You have used 3.2 GB of 10 GB.</CardDescription>
</Card>
)
}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
Card
ComponentProps<"div">

The surface. Children stack with an even gap.

spotlight
boolean

Adds a soft glow that follows the pointer while it is over the card.

CardTitle
ComponentProps<"h3">

The heading inside a card.

CardDescription
ComponentProps<"p">

Muted body text under the title.