Shipment
Follows a shipment across road, sea, rail and air.
When to use
- Use it on a tracking page or an order record.
Examples
Domestic cargo
Loading the example
<k:Shipment title="TR 4821 7730" text="2 parcels, 14 kg" eta="Arrives tomorrow 14:00">
<k:ShipmentStop title="Picked up" text="İzmir" time="08:40" state="success" icon="package-check"/>
<k:ShipmentStop title="Transfer center" text="Manisa" time="13:10" state="success" icon="warehouse"/>
<k:ShipmentStop title="Branch" text="Ankara" state="info" icon="map-pin" mode="van"/>
<k:ShipmentStop title="Delivery" text="Çankaya" icon="house"/>
</k:Shipment>Multimodal export with a customs hold
Loading the example
<k:Shipment title="EXP-2026-118" status="problem" statusText="Held at customs" eta="Hamburg">
<k:ShipmentStop title="Factory" text="Bursa" state="success" mode="truck"/>
<k:ShipmentStop title="Port" text="Gemlik" state="success" mode="ship"/>
<k:ShipmentStop title="Customs" text="Hamburg" state="danger" mode="train" icon="shield-check"/>
<k:ShipmentStop title="Customer" text="Berlin"/>
</k:Shipment>Every mode
Loading the example
<k:Stack gap="12">
<k:Shipment mode="van" progress="30" title="Van"/>
<k:Shipment mode="bike" progress="55" title="Courier"/>
<k:Shipment mode="train" progress="45" title="Rail"/>
<k:Shipment mode="ship" progress="60" title="Sea"/>
<k:Shipment mode="plane" progress="70" title="Air"/>
<k:Shipment mode="truck" status="returning" progress="40" title="Return"/>
</k:Stack>API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
title | string | Tracking number or title | |
text | string | Description | |
eta | string | Arrival text | |
mode | string | truck | truck, van, bike, train, ship or plane |
status | string | transit | transit, waiting, problem, returning or delivered |
statusText | string | Status text | |
progress | float | -1 | Percentage of the route. Negative derives it from the stops |
scene | boolean | true | Whether to draw the road scene |
Aggregations
| Name | Type | Description |
|---|---|---|
stops | ShipmentStop[] | Stops |
Events
| Name | Type | Description |
|---|---|---|
stopPress | key: string | A stop was pressed |
Methods
| Name | Description |
|---|---|
getPosition(): number | Position of the vehicle on the route, 0 to 1. |
getLegMode(): string | Transport mode of the current leg. |
ShipmentStop
A shipment stop.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
key | string | Key | |
title | string | Place or step | |
text | string | Description | |
time | string | Time text | |
icon | string | Icon. Defaults to the status icon | |
state | string | none | success passed, info on the way, wait held, danger problem, none upcoming |
mode | string | Transport mode of the leg leaving this stop |