mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
15 lines
426 B
TypeScript
15 lines
426 B
TypeScript
import { CodeBlock } from 'ui-patterns/CodeBlock'
|
|
|
|
export function JsonCodeBlock({ children }: { children: string }) {
|
|
return (
|
|
<CodeBlock
|
|
language="json"
|
|
hideCopy
|
|
wrapperClassName="!overflow-visible bg-surface-100/50 [&_pre]:!bg-surface-100/50"
|
|
className="rounded-none border-none !overflow-x-visible [&_code]:!leading-tight [&_pre]:!leading-tight"
|
|
>
|
|
{children}
|
|
</CodeBlock>
|
|
)
|
|
}
|