HTML-First UI

Code Block

A component for displaying blocks of code

const greeting = "Hello, World!"
console.log(greeting)

Notes

The code block component wraps content in a styled <pre> element.

  • Use for multi-line code samples or preformatted text
  • See also hf-code for inline code styling