Theme Switcher

Inline Code

Marks text to signify a short fragment of inline computer code.

npm install @ngrok/mantle
import { InlineCode } from "@ngrok/mantle/inline-code";

<InlineCode>npm install @ngrok/mantle</InlineCode>

API Reference

The InlineCode accepts the following props in addition to the standard HTML code attributes.

PropTypeDefaultDescription
asChild
booleanfalse

Use the asChild prop to compose the InlineCode styling and functionality onto alternative element types or your own React components.

children
ReactNode

The content to be rendered inside the inline code element.

className
string

Additional CSS classes to apply to the inline code element.