Graveyard

A scattered discard pile component showing the top card with natural rotation.

Usage

example.tsxtsx
1import { Graveyard } from "@/components/playset-blocks"
2
3const discardPile = [
4 { title: "Fallen Knight", category: "DEAD", theme: "gray" },
5 { title: "Lost Spirit", category: "GHOST", theme: "cyan" },
6]
7
8<Graveyard cards={discardPile} faceUp />

Props

PropTypeDefaultDescription
cards*CardData[]Array of discarded cards
faceUpbooleanShow top card face-up
themestringCard back color theme

See the Card Decks Block for interactive examples.