This component adds a title to a code block that’s styled differently from Starlight’s default styles. The title will be displayed as part of the code block in bold.
To use the component, the page must be in .mdx format. Change the format from .md to .mdx if necessary. All your existing markdown will still be supported without issue.
Usage
Import the CodeBlock component like so:
Use the <CodeBlock> component within your content like so: