One card at a time, the rest waiting underneath

A deck for browsing a set one item at a time: roles, prompts, flashcards, anything worth a considered look. Click the top card and it lifts up and away while the next one rises into place; arrow keys flip it from the keyboard. The stack is the pattern, not the cards: it takes any children, and Card is the intended filling.

Default

Two edges peek out behind the top card, and the deck loops, so flipping never hits a wall. Click the card, or focus the stack and use the arrow keys.

$120/hrAnthropic

Prompt Engineer

Card 1 of 4

Controlled

index, defaultIndex and onIndexChange follow the usual controlled pair, so external controls and the deck itself stay one position.

$120/hrAnthropic

Prompt Engineer

Card 1 of 4
1 of 4

Depth

peek sets how many edges show behind the top card. Zero makes a clean single card that still flips; three reads as a taller pile.

peek=0
$120/hrAnthropic

Prompt Engineer

Card 1 of 4
peek=3
$120/hrAnthropic

Prompt Engineer

Card 1 of 4