interface TravelTimeProps {
    customAttribute?: {
        attribute: string;
        value: string | number;
    };
    duration: DurationType;
    isLoading?: boolean;
    lang?: InputLanguage;
    status?: "yellow";
    type?: "change" | "travel";
}

Properties

customAttribute?: {
    attribute: string;
    value: string | number;
}

Add this for testing. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

duration: DurationType

Specifies the duration in days, hours & minutes.

isLoading?: boolean

If true, a loading skeleton will be rendered instead of the component.

lang?: InputLanguage

Language used for internal translations.

status

Badge status color. Currently only supports 'yellow'.

type?: "change" | "travel"

Display mode for the component:

  • 'travel': Shows total travel time
  • 'change': Shows connection/transfer time