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-state

Installation

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

PropTypeDescription
variant
TransportEmptyVariantPreset scenario. One of: no-routes | indirect-only | unavailable | invalid-route | provider-error | stale-route | price-unavailable | custom.
title
stringOverride the preset title.
description
stringOverride the preset description.
icon
React.ReactNodeOverride the preset icon.
actions
TransportEmptyAction[]Up to two action buttons. First is primary (default variant), second is secondary (outline).