Install
Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):
npx shadcn-vue@latest add https://beehexa.design/r/trace.json
This also installs Collapsible.
Use
<script setup lang="ts">
import { CircleX } from '@lucide/vue'
import {
Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger,
TraceDescription, TraceIcon, TraceLine, TraceTitle,
} from '@/components/ui/trace'
</script>
<template>
<Trace>
<TraceCollapsible default-open>
<TraceCollapsibleTrigger>
<TraceLine status="error">
<TraceIcon><CircleX /></TraceIcon>
<TraceTitle>Failed to create 2 sales orders</TraceTitle>
<TraceDescription>9 s</TraceDescription>
</TraceLine>
</TraceCollapsibleTrigger>
<TraceCollapsibleContent>SO-10482: the customer does not exist in the ERP.</TraceCollapsibleContent>
</TraceCollapsible>
</Trace>
</template>
Props
| Part | Prop | Values | Notes |
|---|---|---|---|
TraceLine |
status |
running, error, pending |
Leave it out for a done step |
TraceCollapsible |
open, defaultOpen |
boolean | Controlled or initial state; emits update:open |
TraceCollapsible |
disabled |
boolean | |
TraceCollapsibleTrigger |
asChild |
boolean | Adds the chevron after its content |
TraceCollapsibleContent |
forceMount |
boolean | Keeps the details in the page while closed |
Trace, TraceTitle, TraceDescription, TraceIcon |
class |
Layout parts |
Built on
The shadcn-vue Trace, on the Beehexa Collapsible (reka-ui Collapsible). Beehexa changes the styles, shows a pending step in color.text.subtlest instead of making it transparent, and uses the Button focus outline.
Limitations
- Details open and close with
motion.expand, through Collapsible. The running shimmer is shadcn’sshimmerutility, not a motion token.