Brand Switcher
A dropdown switcher for navigating between Zostel sub-brands: Zostel, Zostel Plus, Zostel Homes, Zo Trips, and Zo House.
Preview
Usage
tsx
import { BrandSwitcher } from "zostel-ui";
<BrandSwitcher
brands={[
{ name: "Zostel", description: "Backpacker hostels", color: "#F1563F" },
{ name: "Zostel Plus", description: "Premium hostels", color: "#43474B" },
{ name: "Zostel Homes", description: "Private homestays", color: "#8B6F47" },
{ name: "Zo Trips", description: "Group adventures", color: "#2563eb" },
{ name: "Zo House", description: "Co-living spaces", color: "#16a34a" },
]}
selected="Zostel"
onSelect={(brand) => console.log(brand)}
variant="dropdown"
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
brands | Brand[] | — | Array of brand objects with name, description, and color |
selected | string | — | Currently selected brand name |
onSelect | (brand: Brand) => void | — | Callback when a brand is selected |
variant | "dropdown" | "tabs" | "dropdown" | Visual variant |
brandsType:
Brand[]Default: —
Array of brand objects with name, description, and color
selectedType:
stringDefault: —
Currently selected brand name
onSelectType:
(brand: Brand) => voidDefault: —
Callback when a brand is selected
variantType:
"dropdown" | "tabs"Default: "dropdown"
Visual variant