kor TürkçeGitHub

Shipment

Follows a shipment across road, sea, rail and air.

kor/ui/ShipmentSource

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

NameTypeDefaultDescription
titlestringTracking number or title
textstringDescription
etastringArrival text
modestringtrucktruck, van, bike, train, ship or plane
statusstringtransittransit, waiting, problem, returning or delivered
statusTextstringStatus text
progressfloat-1Percentage of the route. Negative derives it from the stops
scenebooleantrueWhether to draw the road scene

Aggregations

NameTypeDescription
stopsShipmentStop[]Stops

Events

NameTypeDescription
stopPresskey: stringA stop was pressed

Methods

NameDescription
getPosition(): numberPosition of the vehicle on the route, 0 to 1.
getLegMode(): stringTransport mode of the current leg.

ShipmentStop

A shipment stop.

Properties

NameTypeDefaultDescription
keystringKey
titlestringPlace or step
textstringDescription
timestringTime text
iconstringIcon. Defaults to the status icon
statestringnonesuccess passed, info on the way, wait held, danger problem, none upcoming
modestringTransport mode of the leg leaving this stop

Related

DeliveryRouteStages