Code usage guidelines
The code component can be used to display short, inline code snippets within text content.
When to use
Section titled “When to use”- To show inline commands such as
npm run testin body copy. - To highlight identifiers like file names.
- To present short fragments of syntax directly in a sentence.
When not to use
Section titled “When not to use”- For multi-line snippets or preformatted examples; use code block instead.
- For plain emphasis where regular text styling is sufficient.