Library
A stacked deck component representing the draw pile with count badge and expandable top card.
Usage
example.tsxtsx
1import { Library } from "@/components/playset-blocks"2 3// Face-down library4<Library count={24} theme="purple" />5 6// Face-up with expandable top card7<Library8 count={24}9 faceUp10 topCard={{11 title: "Phoenix",12 category: "CREATURE",13 theme: "red",14 icon: <Flame />15 }}16/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| count* | number | — | Number of cards in deck |
| faceUp | boolean | — | Show top card face-up |
| topCard | CardData | — | Top card data (when faceUp) |
| theme | string | — | Card back color theme |
See the Card Decks Block for interactive examples.