跳转到内容
GitHub

代码块

Astro 的 <Code> 组件 的包装器, 带有自定义 Shiki 配置.

console.log('Hello, world!')
import { Code } from 'starlight-theme-nova/components'

<Code lang="js" code={`console.log('Hello, world!')`} />

在 Astro 的 <Code> 组件 中, <Code> 组件接受相同的属性.