The following one will be read as (locale: ENG): Connection from Point A to Point B and back to Point A.
.
<sbb-journey-header origin="Point A" destination="Point B" round-trip="true"/>
Basic usage, rendered as <h3>
:
<sbb-journey-header origin="Point A" destination="Point B"/>
Size l
, rendered as <h1>
:
<sbb-journey-header origin="Point A" destination="Point B" size="l" level="1"/>
Negative variant, round-trip:
<sbb-journey-header origin="Point A" destination="Point B" round-trip="true" negative="true"/>
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
destination (required) | destination | Destination location for the journey header. | string | undefined |
level | level | Heading level of the journey header element (e.g. h1-h6). | "1" | "2" | "3" | "4" | "5" | "6" | '3' |
negative | negative | Negative coloring variant flag. | boolean | false |
origin (required) | origin | Origin location for the journey header. | string | undefined |
roundTrip | round-trip | Whether the journey is a round trip. If so, the icon changes to a round-trip one. | boolean | undefined |
size | size | Journey header size. | "l" | "m" | 'm' |
graph TD;
sbb-journey-header --> sbb-title
sbb-journey-header --> sbb-icon
sbb-journey-summary --> sbb-journey-header
style sbb-journey-header fill:#f9f,stroke:#333,stroke-width:4px