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

Function Property

apps/baseai.dev/src/components/mdx/Property.tsx:1–32  ·  view source on GitHub ↗
({
	name,
	children,
	type
}: {
	name: string;
	children: React.ReactNode;
	type?: string;
})

Source from the content-addressed store, hash-verified

1export function Property({
2 name,
3 children,
4 type
5}: {
6 name: string;
7 children: React.ReactNode;
8 type?: string;
9}) {
10 return (
11 <li className="m-0 px-0 py-4 first:pt-0 last:pb-0">
12 <dl className="m-0 flex flex-wrap items-center gap-x-3 gap-y-2">
13 <dt className="sr-only">Name</dt>
14 <dd>
15 <code>{name}</code>
16 </dd>
17 {type && (
18 <>
19 <dt className="sr-only">Type</dt>
20 <dd className="font-mono text-xs text-muted-foreground dark:text-zinc-500">
21 {type}
22 </dd>
23 </>
24 )}
25 <dt className="sr-only">Description</dt>
26 <dd className="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0">
27 {children}
28 </dd>
29 </dl>
30 </li>
31 );
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected