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

PropTypeDefaultDescription
countnumberrequiredNumber of cards in deck
faceUpbooleanfalseShow top card face-up
topCardCardData-Top card data (when faceUp)
themestring"purple"Card back color theme

See the Card Decks Block for interactive examples.