Skip to main content Red Hat Design System logo Contribute on Github v2.0.0

Code block

Overview Style Guidelines Code Demos Accessibility

Overview

Image of a code block with black code text within a light gray container

Status

What do these mean?
Figma library:
Ready✔️
RH Elements:
Ready✔️
RH Shared Libs:
Ready✔️

Sample element

When to use

  • When you need to highlight a block of code while maintaining the formatting

Property Status Meaning
Figma library Ready✔️ Component is available in the Figma library
RH Elements Ready✔️ Component is available in the RH Elements repo
RH Shared Libs Ready✔️ Component is available in the RH Shared Libs repo
© 2021-2024 Red Hat, Inc. Deploys by Netlify