Skip to content
Twentyfirst UIHalo

Reservation Card

Connectors · ReservationCard, Button

View as Markdown

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

PropTypeNotes
kind"stay" | "flight" | "train" | "ride" | "order" | "event"Required
titlestringRequired
subtitle?ReactNode"Hotel Atlantic · 2 nights", "LH 2024 · Seat 14A".
startDate | string | numberRequired
end?Date | string | number
place?ReactNodeWhere: an address, airport codes, a restaurant.
code?stringBooking or order number.
status?"confirmed" | "pending" | "cancelled" | "delayed" | "onTheWay" | "delivered"
statusText?stringExtra words for the status: "+25 min", "Arrives 19:40".
service?ServiceRef
actions?ReactNode
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.

Button

PropTypeNotes
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?booleanRender the single child element (a link, a router Link) with the button's look instead of a <button>.
id?string
name?stringForm field name and value, sent with the form when this button submits it.
value?string
form?stringThe 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?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.