MCPcopy Create free account
hub / github.com/outerbase/studio / DocContent

Function DocContent

src/components/mdx/docs.tsx:13–33  ·  view source on GitHub ↗
({
  children,
  title,
  group,
}: PropsWithChildren<{ title?: string; group?: string }>)

Source from the content-addressed store, hash-verified

11export type DocTableContent = DocTableContentGroup[];
12
13export function DocContent({
14 children,
15 title,
16 group,
17}: PropsWithChildren<{ title?: string; group?: string }>) {
18 return (
19 <>
20 {title && (
21 <div className="-mx-4 mb-4 border-b px-4 pb-4">
22 <div className="max-w-[800px]">
23 {group && <span className="text-sm">{group}</span>}
24 <h1 className="text-2xl font-semibold">{title}</h1>
25 </div>
26 </div>
27 )}
28 <article className={cn("mdx-content max-w-[800px]", { "mt-4": !title })}>
29 {children}
30 </article>
31 </>
32 );
33}
34
35export function DocLayout({
36 children,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected