Components / Print
Print Card
A screen-printed card on cream paper with an ink outline and a hard shadow, plus a tilted sticker tag.
Patch 2.1
Patch notes
What changed this week
- Faster search across every page
- A new dark print for late nights
- Fewer bugs, probably
Rare
Installation
npx shadcn@latest add https://jiaweing.com/r/print-card.jsonWith the @jiaweing namespace set up, use @jiaweing/print-card in place of the URL.
Usage
tsx
import {
PrintCard,
PrintCardContent,
PrintCardHeader,
PrintCardTitle,
PrintTag,
} from "@/components/ui/print-card";tsx
<PrintCard>
<PrintTag tone="lime">New</PrintTag>
<PrintCardHeader>
<PrintCardTitle>Patch notes</PrintCardTitle>
</PrintCardHeader>
<PrintCardContent>Everything that changed this week.</PrintCardContent>
</PrintCard>- PrintCardHeader, PrintCardTitle, PrintCardDescription, PrintCardContent and PrintCardFooter take the props of their HTML element.
Props
PrintCard
| Prop | Type | Default | Description |
|---|---|---|---|
| shadow | "none" | "sm" | "md" | "lg" | "md" | How far the hard offset shadow falls. |
| className | string | - | Extra classes, merged with cn. |
PrintTag
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "paper" | "pink" | "lime" | "cyan" | "amber" | "foil" | "pink" | The spot ink of the sticker. |
| tilt | number | -2 | Rotation in degrees. |
| className | string | - | Extra classes, merged with cn. |
MIT licensed. Copy it, change it, ship it.