- 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
SearchBarFallback
A lightweight static placeholder for the SearchBar, used as a Suspense fallback or initial server render.
pnpm add @wandercom/design-system-web
The SearchBarFallback renders a static placeholder that visually matches the SearchBar's empty state. Wrap the real SearchBar in a Suspense boundary with the fallback to avoid layout shift during loading.
import { SearchBarFallback } from '@wandercom/design-system-web/ui/search-bar-fallback';
import { SearchBar } from '@wandercom/design-system-web/ui/search-bar';
import { Suspense } from 'react';
export function Example() {
return (
<Suspense fallback={<SearchBarFallback />}>
<SearchBar />
</Suspense>
);
}The fallback renders a desktop pill and mobile trigger that match the SearchBar's empty state appearance.
locationPlaceholder?:
datesPlaceholder?:
guestsPlaceholder?:
searchLabel?:
mobilePlaceholder?:
className?:
Accepts all standard div element props.
locationPlaceholder?:
datesPlaceholder?:
guestsPlaceholder?:
searchLabel?:
className?:
Accepts all standard div element props.
placeholder?:
className?:
Accepts all standard div element props.
All visible text can be customized via props to support localization:
<SearchBarFallback
locationPlaceholder="Où ?"
datesPlaceholder="Quand ?"
guestsPlaceholder="Combien ?"
searchLabel="Rechercher"
mobilePlaceholder="Commencer la recherche"
/>This component renders static HTML with no client-side JavaScript, hooks, or state. It works as a React Server Component. On desktop (lg+), shows a pill-shaped bar with location, dates, and guests placeholders plus a search button. On mobile, shows a centered pill with a search icon and placeholder text. All copy is customizable via props with sensible English defaults.