Inline Code

A inline code component that displays text in a sentence with background.

In order to solve x in x + 4 = 5, we need to isolate x by subtracting 4 from both sides

Installation

Install the following dependencies:

Loading...

bash

API Reference

Props list

PropTypeDefaultExampleDescription
codestring-const x = 1The code text to be displayed. Mutually exclusive with children.
childrenReactNode-const x = 1The content to be displayed. Mutually exclusive with code.
classNamestring-custom-classAdditional CSS classes to apply to the component.

Note: code and children are mutually exclusive. If both are provided, code will be used.