Sketch #1042, 9:14 AM
Cat in a teacup, take two
Medium
Open
Three paper objects for three jobs: a ticket stub for queue items, a taped unit card for people, a sticky note for quick context.
import { TicketCard, UnitCard, UnitCardRow, StickyNote, Eta, Tag, Avatar } from "@plop-ui/react";
<TicketCard meta="Sketch #1042, 9:14 AM" title="Cat in a teacup" stub="Open">…</TicketCard>
<UnitCard name="Jun Reyes" subtitle="Animator" avatar={<Avatar name="Jun Reyes" />}>
<UnitCardRow><Tag status="en-route">In progress</Tag><Eta value={6} unit="min left" /></UnitCardRow>
</UnitCard>
<StickyNote footer="Added by Ana">Try the mint on the button.</StickyNote>Change every prop live in the playground.
TicketCard| Prop | Type | Default | What it does |
|---|---|---|---|
| titlerequired | ReactNode | none | The ticket's title, lettered in Sketchpop. |
| children | ReactNode | none | Tags, assignee and so on. |
| headingLevel | 2 | 3 | 4 | 3 | Heading level of the title. |
| loading | boolean | false | Still on its way: the same card with paper scraps for the words, aria-busy and read out as "Loading". |
| meta | ReactNode | none | Small line above the title, e.g. "Sketch #1042, 9:14 AM". |
| stub | ReactNode | none | The tear-off stub, e.g. "Open". |
| tilt | number | none | Rotation in degrees. Leave it out for the card's own small tilt. |
Also takes every attribute of <article> (276 more, e.g. onClick, className, aria-*).
UnitCard| Prop | Type | Default | What it does |
|---|---|---|---|
| namerequired | ReactNode | none | The person's or project's name, lettered in Sketchpop. |
| avatar | ReactNode | none | Usually an <Avatar>. |
| children | ReactNode | none | Rows: status and ETA, actions. |
| headingLevel | 2 | 3 | 4 | 3 | Heading level of the name. |
| loading | boolean | false | Still on its way: a loading avatar and paper scraps for the words, aria-busy and read out as "Loading". |
| subtitle | ReactNode | none | A small line under the name, e.g. a role. |
| tilt | number | none | Rotation in degrees. Leave it out for the card's own small tilt. |
Also takes every attribute of <article> (277 more, e.g. onClick, className, aria-*).
StickyNote| Prop | Type | Default | What it does |
|---|---|---|---|
| childrenrequired | ReactNode | none | What the note says. |
| footer | ReactNode | none | Small line at the bottom, e.g. "Added by Ana, 9:06 AM". |
| tilt | number | none | Rotation in degrees. Leave it out for the card's own small tilt. |
| tone | "mustard" | "mint" | "pink" | mustard | Paper color of the note. |
Also takes every attribute of <aside> (277 more, e.g. onClick, className, aria-*).