Reservation Card
Connectors · ReservationCard, Button
A booking or order: a stay, flight, train, ride, delivery or ticket with its dates, place, booking number and status (confirmed, pending, delayed, on the way, delivered, cancelled) plus a note like "+25 min". actions takes your buttons.
Hamburg → DubaiEK 60 · Seat 32A
Fri, Nov 20, 2:35 PM – 11:50 PM
HAM Terminal 1 → DXB Terminal 3
Delayed · +25 minBooking K7XQ2M
Rove DowntownDouble room · 4 nights
Fri, Nov 20 – Tue, Nov 24
Al Mustaqbal St, Dubai
ConfirmedBooking 4419 2207 81
Wolt · Tokyo Ramen2 items · €31.40
Sat, Nov 14, 7:10 PM
On the way · Arrives 19:40
Hamburg → BerlinICE 1005 · Car 7, seat 64
Fri, Nov 27, 8:06 AM – 9:50 AM
CancelledBooking ZK4M9T
Props
ReservationCard
| Prop | Type | Notes |
|---|---|---|
kind | "stay" | "flight" | "train" | "ride" | "order" | "event" | Required |
title | string | Required |
subtitle? | ReactNode | "Hotel Atlantic · 2 nights", "LH 2024 · Seat 14A". |
start | Date | string | number | Required |
end? | Date | string | number | |
place? | ReactNode | Where: an address, airport codes, a restaurant. |
code? | string | Booking or order number. |
status? | "confirmed" | "pending" | "cancelled" | "delayed" | "onTheWay" | "delivered" | |
statusText? | string | Extra words for the status: "+25 min", "Arrives 19:40". |
service? | ServiceRef | |
actions? | ReactNode | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Button
| Prop | Type | Notes |
|---|---|---|
variant? | "primary" | "secondary" | "soft" | "ghost" | "danger" | "danger-solid" | |
size? | "md" | "sm" | |
icon? | IconName | |
iconRight? | IconName | |
disabled? | boolean | |
type? | "button" | "submit" | "reset" | |
onClick? | (e: MouseEvent<HTMLButtonElement>) => void | |
children? | ReactNode | |
asChild? | boolean | Render the single child element (a link, a router Link) with the button's look instead of a <button>. |
id? | string | |
name? | string | Form field name and value, sent with the form when this button submits it. |
value? | string | |
form? | string | The id of the form this button belongs to, when it sits outside it. |
title? | string | |
tabIndex? | number | |
autoFocus? | boolean | |
aria-label? | string | |
aria-labelledby? | string | |
aria-describedby? | string | |
aria-expanded? | boolean | "true" | "false" | For disclosure and menu triggers: whether what the button controls is open. |
aria-controls? | string | |
aria-haspopup? | boolean | "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog" | |
aria-pressed? | boolean | "true" | "false" | "mixed" | For toggle buttons. |
aria-current? | boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |