Card Stack
A fanned stack of cards that cycles on click or keyboard.
Import
tsx
import { CardStack } from "@cronus-ui/ui";
bash
npx cronus-ui add card-stack
Examples
API Reference
Generated from the component's exported types.
CardStackProps
Extends Omit<HTMLAttributes<HTMLElement>, "children">
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLElement> | — | — |
items* | CardStackItem[] | — | — |
labels | { region?: string; next?: string; } | — | Accessible name for the stack. Defaults to `"Card stack"`. |