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.
Prompt Engineer
Controlled
index, defaultIndex and onIndexChange follow the usual controlled pair, so external controls and the deck itself stay one position.
Prompt Engineer
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.