components.pre() — supabase Function Reference
Architecture documentation for the components.pre() function in mdx-components.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/learn/components/mdx-components.tsx lines 110–139
pre: ({
className,
__rawString__,
__withMeta__,
__src__,
...props
}: React.HTMLAttributes<HTMLPreElement> & {
__rawString__?: string
__withMeta__?: boolean
__src__?: string
}) => {
return (
<div className="relative">
<pre
className={cn(
'mb-4 mt-6 max-h-[650px] overflow-x-auto rounded-lg border bg-surface-75/75 py-4 text-foreground-light',
className
)}
{...props}
/>
{__rawString__ && (
<CopyButton
value={__rawString__}
src={__src__}
className={cn('absolute right-4 top-4', __withMeta__ && 'top-16')}
/>
)}
</div>
)
},
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free