Library
A stacked deck component representing the draw pile with count badge and expandable top card.
Usage
import { Library } from "@/components/playset-blocks"
// Face-down library
<Library count={24} theme="purple" />
// Face-up with expandable top card
<Library
count={24}
faceUp
topCard={{
title: "Phoenix",
category: "CREATURE",
theme: "red",
icon: <Flame />
}}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| count | number | required | Number of cards in deck |
| faceUp | boolean | false | Show top card face-up |
| topCard | CardData | - | Top card data (when faceUp) |
| theme | string | "purple" | Card back color theme |
See the Card Decks Block for interactive examples.