MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / Error

Function Error

apps/baseai.dev/src/components/mdx/Error.tsx:3–32  ·  view source on GitHub ↗
({
	title,
	children
}: {
	title: string;
	children: React.ReactNode;
})

Source from the content-addressed store, hash-verified

1import { IconInfo } from '../ui/icons/info';
2
3export function Error({
4 title,
5 children
6}: {
7 title: string;
8 children: React.ReactNode;
9}) {
10 return (
11 <div className="light:ring-ring:ring-border relative my-7 rounded-lg py-3.5 pl-[1.625rem] pr-4 ring-1 ring-inset ring-ring/10 [--callout-border:theme(colors.red.400)] [--callout-icon:theme(colors.red.400)] [--callout-title:theme(colors.red.400)] dark:[--callout-border:theme(colors.red.400)] dark:[--callout-icon:theme(colors.red.400)] dark:[--callout-title:theme(colors.red.400)] [&>*]:my-0 [&>*]:py-0">
12 <div className="absolute inset-y-2 left-2 w-0.5 rounded-full bg-[--callout-border]"></div>
13 <div className="mb-2 mt-0 flex items-center justify-start gap-1">
14 <IconInfo className="h-4 w-4 text-red-400" />
15 <span className="text-xs font-medium text-[--callout-title]">
16 Error
17 </span>
18 </div>
19
20 <div className="mt-2 [&>a]:text-red-400">
21 {title && (
22 <h4 className="mt-4 flex items-center justify-start gap-4 font-bold text-foreground">
23 <strong>{title}</strong>
24 </h4>
25 )}
26 <div className="mt-0 flex flex-col gap-4 [&>p]:my-0 [&>p]:py-0">
27 {children}
28 </div>
29 </div>
30 </div>
31 );
32}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected