HighlightSvelte Component

Example 1

Use the HighlightSvelte component to highlight your Svelte code. The HighlightSvelte component requires code props. langtag and --langtag-color are optional.

Example 2

Using different --langtag-color.

Props

HighlightSvelte component has the following props:

Language tag style

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