Marks a short fragment of inline computer code — a function name, a variable, a CLI flag, a key. Renders a native <code> element with mantle's monospace styling.
CodeBlock instead.Kbd.Use the console.log() function to debug your code.
1import { Code } from "@ngrok/mantle/code";2 3<p>4 Use the <Code>console.log()</Code> function to debug your code.5</p>;Pass asChild to render Code styling on a different element — for example, a link wrapping a code-styled label.
1import { Anchor } from "@ngrok/mantle/anchor";2import { Code } from "@ngrok/mantle/code";3 4<Code asChild>5 <Anchor href="https://ngrok.com/docs">/api/components.json</Anchor>6</Code>;All props from code, plus: