Transport Empty State
Transport-specific empty and error states. Each variant maps to a preset icon, title, and description tuned for the transport UX context. All presets can be overridden. Includes a TransportNoResults convenience wrapper.
core/transport-empty-stateInstallation
1 · Add registry to components.json
2 · Install component
Examples
Default
All preset variants plus provider-error with actions and indirect-only with filter nudge.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
variant | TransportEmptyVariant | "no-routes" | Preset scenario. One of: no-routes | indirect-only | unavailable | invalid-route | provider-error | stale-route | price-unavailable | custom. |
title | string | — | Override the preset title. |
description | string | — | Override the preset description. |
icon | React.ReactNode | — | Override the preset icon. |
actions | TransportEmptyAction[] | — | Up to two action buttons. First is primary (default variant), second is secondary (outline). |