MiniCard
- Layer: Primitive
- Base: Custom — no Ark UI dependency
Static
Section titled “Static”Non-clickable cards
confluenceSprint retro Q1
2h agojiraRS-142 — Embed pipeline
yesterdayClickable
Section titled “Clickable”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
| Prop | Type | Default | Description |
|---|---|---|---|
children | JSX.Element | required | Card content |
onClick | EventHandler | — | Makes the card interactive — adds cursor, tab stop, role, and focus ring |
MiniCard vs Card
Section titled “MiniCard vs Card”| MiniCard | Card | |
|---|---|---|
| Structure | Flat — you provide the layout | Header / Body / Footer slots |
| Use case | Result rows, capture items, list entries | Standalone content units |
| Hover | bg.emphasized tone shift only | Same |
| Shadow | None | None |
| Padding | p: 3 (12px) | Varies per slot |
Design notes
Section titled “Design notes”- Hover is
bg.emphasized— a pure tone shift, no shadow. Plane 1 rule: no floating effects in the UI layer. - Transition:
backgroundonly,durations.fastwitheasings.organic. - When
onClickis present, the div getsrole="button"andtabIndex={0}so it’s keyboard-accessible. The focus ring is the standard 4-layer glow fromshadows.focus. - Do not wrap
MiniCardin anotherMiniCard— nesting clickable surfaces creates ambiguous interaction targets.
Plane 1 Constraints
Section titled “Plane 1 Constraints”- No drop shadows
- No gradients
- No glow on hover
- Background shift only on hover