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

Function Info

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected