Code block
On this page
Style
A code block displays read-only text with code formatting within a light gray container.
Anatomy

- Code text
- Container
Theme
A code block is available in both light and dark themes.
Light theme

Dark theme

Configuration
Code block text is always horizontally and vertically centered.

Space
Container spacing reduces as breakpoints get smaller.

Example
Token
Description
lg
16px spacer
xl
24px spacer
Interaction states
A code block includes only text and is not interactive right now.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.