Highlight Component

Basic

The Highlight component requires language and code props. The langtag prop is optional and it will add a language tag.

Language Tag with different styles

Markdown

Set langtag and language props to display the language name in the top right corner of the code block.

YAML

JSON

Typescript

Props

Language tag style

Customize the language tag background, color, and border-radius using style props.