- 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
Empty
A component that displays an empty state.
pnpm add @wandercom/design-system-web
import { Empty } from '@wandercom/design-system-web/blocks/empty';
export function Example() {
return (
<Empty
action={{ label: "Clear search", onClick: () => setSearch("") }}
icon={<IconSearch />}
secondaryText="Try a different search"
text="No items found"
/>
);
}Radio group with a default value set and without a default value set.
Loading example...
<Empty
action={{
label: "Clear search",
onClick: () => {},
}}
icon={<IconMagnifyingGlass />}
secondaryText="Try a different search"
text="No items found"
/>id
string?
HTML id for the empty state container.
text?
string
Text to display in the empty state.
icon?
React.ReactNode
Icon to display in the empty state.
secondaryText?
string
Secondary text to display in the empty state.
action?
{ label: string; onClick: () => void }
Action button to display in the empty state.
className?
string
Additional CSS classes to apply.