Skip to content

Syntax highlight component output

This example demonstrates a custom <HighlightOutput> component which displays the HTML output of anything passed as children in a syntax-highlighted code block. This makes it possible to display a component’s HTML markup to users for example.