Marks text to signify a short fragment of computer code.
This component is based on the code
element and supports common margin props.
Use the size
prop to control text size. This prop also provides correct line height and corrective letter spacing—as text size increases, the relative line height and letter spacing decrease.
Use the variant
prop to control the visual style.
Use the color
prop to assign a specific color.
Use the highContrast
prop to increase color contrast with the background.
Use the weight
prop to set the text weight.
Use the truncate
prop to truncate text with an ellipsis when it overflows its container.