Match dialog
The moment two people choose each other — a match, a pair, a deal: the two avatars meet at a heart in the brand gradient, the next step under them.
- Domain
- Feedback & overlays
- Support level
- Size
- 10.0 kB gzip, budget 20.0 kB
- Who uses it
- No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { MatchDialog } from "@krizaka/ui/match-dialog";Web and mobile — the same component for React and React Native. Deprecated: kept for the apps that still use it, removed in its next major.
Why it is here. No user: the product it was built for left the organisation and no filed need names it (ADR-006 audit, 2026-10-25): there is no replacement.
DeprecatedSince 3.55.0, removed in 4.0.0. No user: the product it was built for left the organisation and no filed need names it (ADR-006 audit, 2026-10-25): there is no replacement.
When to use
- A mutual like in a dating app.
- Two parties agree: a deal, a duo for a challenge.
When not to use
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { MatchDialog } from "@krizaka/ui/match-dialog";Examples
It's a match
Opened at load: the two avatars, the message button.
Props
Two people choose each other: the avatars meet at a heart in the brand gradient, the next step under them.
| Prop | Type | Default | Description |
|---|---|---|---|
onOpenChangerequired | (open: boolean) => void | — | Called when it closes. |
onPrimaryrequired | () => void | — | What it does. |
openrequired | boolean | — | Shown (controlled). |
peoplerequired | readonly [{ src?: string | null | undefined; name: string; }, { src?: string | null | undefined; name: string; }] | — | The two people: avatar URLs and names. |
primaryLabelrequired | string | — | The main action (“Send a message”). |
secondaryLabelrequired | string | — | The way back (“Keep swiping”). |
titlerequired | string | — | The headline (“It's a match!”) — passed translated; the dialog's name. |
container | HTMLElement | null | — | Where it is drawn (the page's body by default): give an element inside a brand scope (.brand-…) so the dialog wears the brand too. |
description | string | — | A line under it. |
Accessibility
- A dialog named by its title, announced when it opens; a success tick on React Native.
- The entrance is skipped under reduced motion.
Keyboard
| Keys | Action |
|---|---|
| Esc | Closes it (the way back). |
Best practices
- Offer the next step first (“Send a message”), and a way back.
- Keep it rare: it is a celebration.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub