Code block

OverviewStyleGuidelinesCodeAccessibilityDemos

Overview

A code block is formatted text within a container.

Status

Sample element

When to use

  • When you need to highlight a block of code while maintaining the formatting
Image of a code block with black code text within a light gray container

Status checklist