Aurora AI Stack Trace
aurora-dinglebear-ai/aurora-ai-stack-traceUnverifiedBlock
Aurora-native stack trace parity surface from AI Elements.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-stack-trace.jsonSource
1"use client"23import * as React from "react"4import { CircleAlert } from "lucide-react"5import { cn } from "@/lib/utils"6import { Badge } from "@/registry/aurora/ui/badge"78/**9 * StackTrace — an error stack-trace panel.10 *11 * Architecture is the canonical shadcn-registry pattern: a self-contained12 * `forwardRef` component with a typed prop API. Visuals match the Aurora /13 * Claude Design source 1:1 — a raised panel with a rose-tinted alert tile, a14 * bold display title, the error message in monospace, then numbered frames.15 * Each frame shows its index, the function name (cyan for app frames, dimmed16 * for vendor frames), an optional VENDOR tag, and the file:line:column origin.17 * Vendor frames (anything under `node_modules`) are dimmed and tagged.18 */1920export interface StackFrame {21 /** Function / method name for this frame. */22 fn?: string23 /** Source file path. */24 file: string25 /** 1-based line number. */26 line?: number27 /** 1-based column number. */28 column?: number29 /**30 * Force the vendor treatment (dimmed row + VENDOR tag). When omitted it is31 * inferred from the file path (`node_modules`).32 */33 vendor?: boolean34 /** Optional secondary label rendered under the origin. */35 label?: string36}3738export interface StackTraceProps extends React.HTMLAttributes<HTMLDivElement> {39 /** Title shown beside the alert tile. */40 title?: string41 /** The error message rendered under the title. */42 error?: string43 /** Ordered stack frames, top of stack first. */44 frames: StackFrame[]45}4647function isVendorFrame(frame: StackFrame): boolean {48 if (typeof frame.vendor === "boolean") return frame.vendor49 return /(^|\/)node_modules\//.test(frame.file)50}5152function formatOrigin(frame: StackFrame): string {53 const line = frame.line != null ? `:${frame.line}` : ""54 const column = frame.column != null ? `:${frame.column}` : ""55 return `${frame.file}${line}${column}`56}5758const StackTrace = ({ ref, className, title = "Stack Trace", error, frames, style, ...props }: StackTraceProps & { ref?: React.Ref<HTMLDivElement> }) => (59 <div60 ref={ref}61 className={cn("grid gap-3.5 p-4", className)}62 style={{63 background: "var(--aurora-surface-raised)",64 border: "1px solid var(--aurora-border-strong)",65 borderRadius: "var(--aurora-radius-1)",66 boxShadow: "var(--aurora-shadow-medium), var(--aurora-highlight-medium)",67 ...style,68 }}69 {...props}70 >71 <div className="flex items-start gap-3">72// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora AI Actionaurora-ai-action | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Actionsaurora-ai-actions | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Agentaurora-ai-agent | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Image Gridaurora-ai-ai-image-grid | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Attachmentsaurora-ai-attachments | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Audio Playeraurora-ai-audio-player | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Branchaurora-ai-branch | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Canvasaurora-ai-canvas | aurora | Blocks | Unverified | 1 dep |
