- Accordion
- Avatar
- Badge
- Breadcrumb
- Button
- Calendar
- Checkbox
- Combobox
- Container
- CurrencyInput
- DistributionSlider
- Drawer
- Dropdown
- Grid
- Heading
- Image
- Input
- InputGroup
- Label
- Logo
- MapPin
- Modal
- NativeSelect
- NumberInput
- OtpInput
- PhoneInput
- Popover
- Progress
- PropertyCalendar
- RadioGroup
- RadioGroupCards
- ResponsiveModal
- ScrollArea
- SearchBar
- SearchBarFallback
- SearchInput
- Select
- Separator
- Spinner
- Switch
- Tabs
- Text
- Textarea
- Toast
- Toggle
- ToggleGroup
- Tooltip
MapPin
Map marker pin button with default, precision, price, and cluster variants.
pnpm add @wandercom/design-system-web
import { MapPin } from '@wandercom/design-system-web';
export function Example() {
return (
<div className="flex items-center gap-4">
<MapPin />
<MapPin variant="price" price={{ currency: 'USD', fractional: 15000 }} />
</div>
);
}Loading example...
<MapPin />
<MapPin isActive />Loading example...
<MapPin variant="price" price={{ currency: 'USD', fractional: 15000 }} />Loading example...
<MapPin variant="cluster" count={5} />Loading example...
<MapPin variant="precision" />
<MapPin variant="precision" color="yellow" />variant?:
'default' | 'precision' | 'price' | 'cluster'
Visual variant. Defaults to 'default'.
isActive?:
boolean
Whether the pin is active (selected). Applies to default, price, and cluster.
price?:
{ currency: string; fractional: number }
Price to display when variant is 'price'.
count?:
number
Count to display when variant is 'cluster'.
color?:
'default' | 'yellow'
Pin color for the precision variant. Defaults to 'default'.
icon?:
ReactNode
Optional icon to render inside the precision pin.
className?:
string
Additional CSS classes for the root button.