Zostel
Stays Amenity Card

Amenity Card

One amenity: its roundel and a short label. Use the master roundels as they are, or the UI weight on a landscape colour.

Preview

The roundels, in an AmenityGrid

Fast Wi-Fi
Wi-Fi
Cafés & restaurants
Café
Secure lockers
Lockers
Hangout areas
Hangout
Laundry
Laundry
Clean linen & beds
Clean beds

UI weight on a landscape colour

Wi-Fi
Café
Lockers

Usage

tsx
import { AmenityCard, AmenityGrid, WifiIcon, LockersIcon } from "zostel-ui";

<AmenityGrid columns={4}>
  <AmenityCard icon={<WifiIcon size={48} />} label="Wi-Fi" />
  <AmenityCard icon={<LockersIcon size={48} />} label="Lockers" />
</AmenityGrid>

{/* a one-colour icon on a disc */}
<AmenityCard icon={<WifiIcon variant="ui" color="#FFFFFF" />} label="Wi-Fi" backgroundColor="#AA5EA5" />

AmenityCard

icon
Type: ReactNode
Default: —

A roundel (<WifiIcon />, brings its own disc) or a one-colour icon.

label
Type: string
Default: —

Short, in capitals by style.

backgroundColor
Type: string
Default: —

A disc behind a one-colour icon — a landscape colour. Leave unset for roundels.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).

AmenityGrid

columns
Type: 3 | 4 | 5 | 6
Default: 4

Columns from sm up. A phone always shows three a row, so the labels never crowd.

className
Type: string
Default: —

More classes, merged with the component’s own (tailwind-merge).

The roundel rule

On a light disc (Marigold, Sunshine, Sky, Mustard Leaf, Paddy Green, Apricot, Blush) the glyph is Steel Grey; on the rest, white.