example use cases

This commit is contained in:
Sarina Li
2025-10-15 22:39:04 -04:00
parent 2b1294413c
commit 63902b2e77
5 changed files with 136 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ export function EditableCodeBlock({
return (
<EditableCodeContext.Provider value={{ values, updateValue }}>
<Base.CodeBlock title={title} className={cn('my-4', className)}>
<Base.Pre className={cn(`language-${lang}`)}>
<Base.Pre className={cn(`language-${lang}`, "px-3")}>
<code className={cn(`language-${lang}`)} style={{ display: 'block', whiteSpace: 'pre-wrap' }}>
{children}
</code>