Code
Displays formatted code.
Importing
1
import { Code } from '@infinityfx/fluid';Usage
Syntax highlighting
API reference
Code Props
title?
string
A title header displayed above the code block.
lineNumbers?
boolean
true
Displays line numbers on the left of the code block.
dangerouslyInject?
boolean
false
Allows rendering pre-tokenized HTML string directly. Note: Use caution to avoid XSS.