Skip to content

MiniCard

  • Layer: Primitive
  • Base: Custom — no Ark UI dependency

Non-clickable cards

confluenceSprint retro Q1
2h ago
jiraRS-142 — Embed pipeline
yesterday

When onClick is provided, the card gains cursor: pointer, tabIndex={0}, role="button", and focus ring styles.

Clickable — opens on click

confluenceSprint retro Q1
jiraRS-142 — Embed pipeline
PropTypeDefaultDescription
childrenJSX.ElementrequiredCard content
onClickEventHandlerMakes the card interactive — adds cursor, tab stop, role, and focus ring
MiniCardCard
StructureFlat — you provide the layoutHeader / Body / Footer slots
Use caseResult rows, capture items, list entriesStandalone content units
Hoverbg.emphasized tone shift onlySame
ShadowNoneNone
Paddingp: 3 (12px)Varies per slot
  • Hover is bg.emphasized — a pure tone shift, no shadow. Plane 1 rule: no floating effects in the UI layer.
  • Transition: background only, durations.fast with easings.organic.
  • When onClick is present, the div gets role="button" and tabIndex={0} so it’s keyboard-accessible. The focus ring is the standard 4-layer glow from shadows.focus.
  • Do not wrap MiniCard in another MiniCard — nesting clickable surfaces creates ambiguous interaction targets.
  • No drop shadows
  • No gradients
  • No glow on hover
  • Background shift only on hover