chore: update DynamicCodeBlock component props

This commit is contained in:
javayhu 2025-04-19 14:49:37 +08:00
parent c8b29c59dc
commit 5b30fd8c48

View File

@ -28,7 +28,16 @@ export default function Example() {
className="bg-transparent px-4 py-2 text-sm focus-visible:outline-none"
/>
</div>
<DynamicCodeBlock lang={lang} code={code} />
<DynamicCodeBlock
lang={lang}
code={code}
options={{
themes: {
light: 'github-light',
dark: 'github-dark',
},
}}
/>
</div>
);
}