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 sidesInstallation
Install the following dependencies:
Loading...
API Reference
Props list
| Prop | Type | Default | Example | Description |
|---|---|---|---|---|
code | string | - | const x = 1 | The code text to be displayed. Mutually exclusive with children. |
children | ReactNode | - | const x = 1 | The content to be displayed. Mutually exclusive with code. |
className | string | - | custom-class | Additional CSS classes to apply to the component. |
Note: code and children are mutually exclusive. If both are provided, code will be used.