Components
Suggestion card
One proposal for one gap. The reason comes first, in the serif; the thing comes second; the evidence and the commitment are one tap away. A card never appears outside a gap.
Overview
Fund review
Call, 90 minutes
Three hours
- Calendar
- Clear 11.00 to 14.00, no travel either side
- Health
- Recovery 31%, three nights under five hours
- Pattern
- You book recovery after long-hauls, eight times in nine
- Access
- Held for you until 10.30
Anatomy
- Calendar
- Clear 11.00 to 14.00, no travel either side
- Health
- Recovery 31%, three nights under five hours
- 1ReasonWhy this, why now, why you. Serif, tertiary ink, always first, separated by a hairline.
.au-type-voice-s - 2ProposalThe thing itself, specific enough to act on. Serif in bone.
.au-type-title-s - 3DetailWhere, how far, what it costs you. Sans in label grey.
.au-type-body-s - 4Reasoning traceThe evidence, revealed to a measured height when the card opens.
ReasoningTrace - 5CommitA hold button. Booking is never a single tap.
HoldButton - 6DeclineQuiet, and final: Aurora won’t raise it again.
Button variant='quiet'
Behaviour
- Open. Tap the card. The trace glides open to its measured height over 600ms; signals stagger in 60ms apart; the actions arrive last.
- Commit. Hold. The gap’s beam charges while you do. When the hold completes, the card morphs into the work Aurora is doing.
- Leave it open. Push the card left. Past 84px it slides away and the gap says it will stay open. “Not today” does the same without a gesture.
Usage
Sarah lands at six. It’s been twenty-seven days.
Tanaka’s counter, eight o’clock.
Lead with a reason about the person: their day, their history, a real window.
ONLY 2 LEFT!
Tanaka’s counter, eight o’clock.
Trending in London
Don’t lead with the product, and don’t use urgency. The reason is the whole argument for trust.
Accessibility
- The summary is a button with
aria-expandedandaria-controls. Actions sit outside it, so there are no buttons nested in buttons. - Closed means inert. The trace and its actions can’t be reached until the card is open.
- Swipe has a button. “Not today” is the keyboard and screen-reader path for leaving the gap open.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| because* | string | — | Why this, why now. One sentence. |
| what* | string | — | The proposal. |
| detail | string | — | Where, how far, what it costs. |
| signals* | { key: string; value: string }[] | — | Three to five pieces of evidence. |
| onConfirm | () => void | — | Called when the hold completes. |
| onDecline | () => void | — | Called on Not today or a swipe past 84px. |
| onChargeChange | (charging: boolean) => void | — | Pass the gap’s setter so its light charges with the hold. |
| defaultOpen | boolean | false | Start with the trace open. |
| swipeable | boolean | true | Allow pushing the card aside. |
| declineLabel | string | 'Not today' | Label for the quiet button. |
Tokens
| Token | Value | Used for |
|---|---|---|
| --au-bg-raised | → night.900 · #0E0F11 | Cards and controls at rest. |
| --au-bg-raised-hover | → night.850 · #131418 | Raised surfaces under a pointer. |
| --au-border-hairline | → night.750 · #1E2024 | Default 1px structure. |
| --au-border-strong | → night.700 · #2A2D33 | Hover, and controls that need a visible edge. |
| --au-radius-md | 6px | Containers: cards, panels. |
| .au-type-voice-s | The reason. Always serif, always first. | |
| .au-type-title-s | The thing being proposed. | |
| --au-dur-glide | 600ms |
Code
<Gap time="19.30" span="Evening" state={charging ? 'charging' : 'idle'}>
<Morph contentKey={phase}>
{phase === 'offer' ? (
<SuggestionCard
because="Sarah lands from Milan at six. You haven’t had dinner together since the third."
what="Two seats at Tanaka’s counter, eight o’clock."
detail="Released twenty minutes ago."
signals={signals}
onChargeChange={setCharging}
onConfirm={() => setPhase('working')}
onDecline={() => setPhase('declined')}
/>
) : (
<ExecutionSteps steps={['Counter held for two', 'Car at 19.40', 'Sarah sent the time']} />
)}
</Morph>
</Gap>