components

InlineCode

Inline code — e.g. run pnpm build to compile. Always <code>. This is also what a single backtick renders to in every page across this site, including this one.

tsx
pnpm build
<InlineCode>
  ...
</InlineCode>

Examples

For a value or command name inline in a sentence:

tsx
Set strict to opt into the stricter validation path.
<Text>
  Set <InlineCode>strict</InlineCode> to opt into the stricter validation path.
</Text>

For a whole snippet spanning multiple lines, reach for CodeBlock instead — InlineCode has no syntax highlighting and no copy button, since it's meant to sit inline in a sentence, not stand on its own.

Props

PropTypeDefaultDescription
classNametext