Playing Card
A self-contained playing card with face layouts, three sizes, native div props, and an optional custom back image.
- Used by
- Blackjack
Ranks and suits
Face up and face down.
Faces
The same hand drawn full and simple.
face="full"
face="simple"
Sizes
Width is a custom property, so the whole card scales with it.
size="sm"
size="base"
size="large"
Custom back
The same hand twice: the default back, then backImage.
plain back
hidden backImage="/cards/card-back.svg"
pnpm dlx shadcn@latest add https://betui.fyi/r/playing-card.json