interface TransportDetailsProps {
    adjustLeft?: boolean;
    applyGradient?: boolean;
    customAttribute?: {
        attribute: string;
        value: string | number;
    };
    duration?: DurationType;
    dynamicTrainSize?: boolean;
    hasMarginBottom?: boolean;
    hasMarginTop?: boolean;
    isLoading?: boolean;
    lang?: InputLanguage;
    placements?: null | PlacementsType[];
    showTransportImage?: boolean;
    sx?: SxProps<Theme>;
    translation?: Partial<TransportDetailsTranslations>;
    transportations: TransportationType[];
    transportInformations?: TransportInformationType[];
    transportStatus?: StatusType;
}

Properties

adjustLeft?: boolean

If the train image should be left intented like the rest of the content

applyGradient?: boolean

If the train image should fade out or not

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

Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

duration?: DurationType

Information about the duration (travel time) of the travel

dynamicTrainSize?: boolean

If the train should shrink depending on the size of transport information

hasMarginBottom?: boolean
hasMarginTop?: boolean
isLoading?: boolean

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

lang?: InputLanguage

Language used for internal translations.

placements?: null | PlacementsType[]

Information about the travellers placement, like seat number and carriage id

showTransportImage?: boolean

Decide if train image should be shown. Defaults to true.

sx?: SxProps<Theme>

The system prop that allows defining system overrides as well as additional CSS styles.

translation?: Partial<TransportDetailsTranslations>

Translations

transportations: TransportationType[]

The type of transportations

transportInformations?: TransportInformationType[]

Information about the transportation like WIFI etc.

transportStatus?: StatusType

Any additional status of journey, like Ingen serving