Skip to content
BlueSkyGitHub

Code

A wrapper around Astro’s <Code> component with custom Shiki configuration.

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

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

The <Code> component accepts the same props in Astro’s <Code> component.