Code
Use the Code component to display snippets of code inline. If you want to display a block of code, use the CodeSnippet component instead.
Import
import { Code } from '@dynatrace/strato-components/typography';
Demo
Style inheritance
Code applies a monospace font family, a specific font weight, and its own background and text color, but otherwise inherits from its surrounding context. Any inheritable CSS property not explicitly set by the component flows through from the parent.