Post Card

Generalised social post card. Avatar, author, handle, timestamp, content, optional preview and actions slots. Sibling PostCardStat for tabular-num stat rows.

Preview
Ada Lovelace@ada
The analytical engine has no pretensions whatever to originate anything. It can do whatever we know how to order it to perform.
Customize
Look
0
1

Props

PropTypeDefaultDescription
variant"surface" | "outline" | "ghost""surface"Surface treatment.
size"sm" | "md" | "lg""md"Padding scale.
interactivebooleanfalseOpt-in hover lift + cursor pointer.
authorstringDisplay name.
handlestringHandle / username.
timestampstringRelative time string.
contentReactNodeMain post body.

Accessibility

When interactive is true the root becomes a <button> with aria-label derived from author + the first 80 chars of content. Otherwise it's a plain <article>.