One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
<script setup lang="ts">
import RecordShipmentDetailMapBeside from '@/components/trame/blocks/record/record-shipment-detail-map-beside.vue'
const props = {
title: "Shipment EXP-20418",
subtitle: "Express courier · 2 parcels",
back: {
label: "Shipments",
action: "shipments"
},
status: {
label: "In transit",
tone: "info"
},
order: {
label: "Order #1048",
action: "order",
record: {
id: 1048
}
},
actions: {
primary: {
label: "Notify the customer",
action: "notify-customer"
},
secondary: [
{
label: "Print labels",
action: "print-labels"
},
{
label: "Report a problem",
action: "report-issue"
}
]
},
route: [
{
place: "Workshop warehouse, Portland, OR",
detail: "Left October 14 at 5:40 PM",
state: "done"
},
{
place: "Regional facility, Salem, OR",
detail: "Scanned October 14 at 9:05 PM",
state: "done"
}
],
stages: [
"Packed",
"Handed to carrier"
],
stage: 2,
facts: [
{
label: "Carrier",
value: "Express courier, 24-hour service"
},
{
label: "Tracking number",
value: "6A 204 118 377 US"
}
],
activity: {
title: "Carrier tracking",
items: [
{
time: "Oct 15 · 4:12 AM",
place: "Sacramento",
text: "Arrived at the sorting hub"
},
{
time: "Oct 15 · 12:30 AM",
place: "Salem",
text: "Left the regional facility"
}
]
},
map: {
src: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221200%22%20height%3D%22760%22%20viewBox%3D%220%200%201200%20760%22%3E%3Ctitle%3EFictional%20route%20schematic%3C%2Ftitle%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%238b919a%22%20stroke-opacity%3D%22.28%22%20stroke-width%3D%2210%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M-20%20140C200%20170%20330%20120%20470%20120S760%20210%20900%20180%201120%2090%201220%20120%22%2F%3E%3Cpath%20d%3D%22M80%20760C160%20600%20260%20520%20420%20470S700%20380%20820%20260%20980%2060%201040%20-20%22%2F%3E%3Cpath%20d%3D%22M-20%20520C180%20500%20360%20560%20560%20600S900%20640%201220%20600%22%2F%3E%3C%2Fg%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%238b919a%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%223%22%3E%3Cpath%20d%3D%22M0%20330H1200M0%20430C300%20400%20500%20450%201200%20410M300%200V760M760%200C740%20260%20780%20480%20760%20760%22%2F%3E%3C%2Fg%3E%0A%3Cpath%20fill%3D%22%238b919a%22%20fill-opacity%3D%22.1%22%20d%3D%22M930%20470c60-30%20160-20%20210%2030s30%20140-40%20170-180%2010-210-50%200-120%2040-150z%22%2F%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%234f6bd8%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M612%20640L660%20590%20690%20470%20668%20330%22%2F%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%234f6bd8%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%222%2018%22%20d%3D%22M668%20330L600%20210%20470%20110%22%2F%3E%0A%3Cg%20fill%3D%22%234f6bd8%22%3E%3Ccircle%20cx%3D%22612%22%20cy%3D%22640%22%20r%3D%2212%22%2F%3E%3Ccircle%20cx%3D%22660%22%20cy%3D%22590%22%20r%3D%2210%22%2F%3E%3Ccircle%20cx%3D%22470%22%20cy%3D%22110%22%20r%3D%2212%22%20fill-opacity%3D%22.55%22%2F%3E%3C%2Fg%3E%0A%3Ccircle%20cx%3D%22668%22%20cy%3D%22330%22%20r%3D%2230%22%20fill%3D%22%234f6bd8%22%20fill-opacity%3D%22.18%22%2F%3E%3Ccircle%20cx%3D%22668%22%20cy%3D%22330%22%20r%3D%2215%22%20fill%3D%22%234f6bd8%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%225%22%2F%3E%0A%3C%2Fsvg%3E",
alt: "Schematic of the route, from the departure at the bottom to the destination at the top, with the current position marked at the sorting hub.",
attribution: "Demo illustration, not geographically accurate"
}
}
</script>
<template>
<RecordShipmentDetailMapBeside v-bind="props" />
</template>
import { RecordShipmentDetailMapBeside } from '@/components/trame/blocks/record/record-shipment-detail-map-beside'
const props = {
title: "Shipment EXP-20418",
subtitle: "Express courier · 2 parcels",
back: {
label: "Shipments",
action: "shipments"
},
status: {
label: "In transit",
tone: "info"
},
order: {
label: "Order #1048",
action: "order",
record: {
id: 1048
}
},
actions: {
primary: {
label: "Notify the customer",
action: "notify-customer"
},
secondary: [
{
label: "Print labels",
action: "print-labels"
},
{
label: "Report a problem",
action: "report-issue"
}
]
},
route: [
{
place: "Workshop warehouse, Portland, OR",
detail: "Left October 14 at 5:40 PM",
state: "done"
},
{
place: "Regional facility, Salem, OR",
detail: "Scanned October 14 at 9:05 PM",
state: "done"
}
],
stages: [
"Packed",
"Handed to carrier"
],
stage: 2,
facts: [
{
label: "Carrier",
value: "Express courier, 24-hour service"
},
{
label: "Tracking number",
value: "6A 204 118 377 US"
}
],
activity: {
title: "Carrier tracking",
items: [
{
time: "Oct 15 · 4:12 AM",
place: "Sacramento",
text: "Arrived at the sorting hub"
},
{
time: "Oct 15 · 12:30 AM",
place: "Salem",
text: "Left the regional facility"
}
]
},
map: {
src: "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221200%22%20height%3D%22760%22%20viewBox%3D%220%200%201200%20760%22%3E%3Ctitle%3EFictional%20route%20schematic%3C%2Ftitle%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%238b919a%22%20stroke-opacity%3D%22.28%22%20stroke-width%3D%2210%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M-20%20140C200%20170%20330%20120%20470%20120S760%20210%20900%20180%201120%2090%201220%20120%22%2F%3E%3Cpath%20d%3D%22M80%20760C160%20600%20260%20520%20420%20470S700%20380%20820%20260%20980%2060%201040%20-20%22%2F%3E%3Cpath%20d%3D%22M-20%20520C180%20500%20360%20560%20560%20600S900%20640%201220%20600%22%2F%3E%3C%2Fg%3E%0A%3Cg%20fill%3D%22none%22%20stroke%3D%22%238b919a%22%20stroke-opacity%3D%22.18%22%20stroke-width%3D%223%22%3E%3Cpath%20d%3D%22M0%20330H1200M0%20430C300%20400%20500%20450%201200%20410M300%200V760M760%200C740%20260%20780%20480%20760%20760%22%2F%3E%3C%2Fg%3E%0A%3Cpath%20fill%3D%22%238b919a%22%20fill-opacity%3D%22.1%22%20d%3D%22M930%20470c60-30%20160-20%20210%2030s30%20140-40%20170-180%2010-210-50%200-120%2040-150z%22%2F%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%234f6bd8%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M612%20640L660%20590%20690%20470%20668%20330%22%2F%3E%0A%3Cpath%20fill%3D%22none%22%20stroke%3D%22%234f6bd8%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%222%2018%22%20d%3D%22M668%20330L600%20210%20470%20110%22%2F%3E%0A%3Cg%20fill%3D%22%234f6bd8%22%3E%3Ccircle%20cx%3D%22612%22%20cy%3D%22640%22%20r%3D%2212%22%2F%3E%3Ccircle%20cx%3D%22660%22%20cy%3D%22590%22%20r%3D%2210%22%2F%3E%3Ccircle%20cx%3D%22470%22%20cy%3D%22110%22%20r%3D%2212%22%20fill-opacity%3D%22.55%22%2F%3E%3C%2Fg%3E%0A%3Ccircle%20cx%3D%22668%22%20cy%3D%22330%22%20r%3D%2230%22%20fill%3D%22%234f6bd8%22%20fill-opacity%3D%22.18%22%2F%3E%3Ccircle%20cx%3D%22668%22%20cy%3D%22330%22%20r%3D%2215%22%20fill%3D%22%234f6bd8%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%225%22%2F%3E%0A%3C%2Fsvg%3E",
alt: "Schematic of the route, from the departure at the bottom to the destination at the top, with the current position marked at the sorting hub.",
attribution: "Demo illustration, not geographically accurate"
}
}
export function Section() {
return <RecordShipmentDetailMapBeside {...props} />
}