Math
LaTeX math equations
Render LaTeX equations with KaTeX.
Inline math
use InlineMath for equations within text.
Block math
use BlockMath for standalone equations.
Math component
The base Math component with display mode option.
Props
Math
| prop | type | default | description |
|---|---|---|---|
| children | ReactNode | required | LaTeX expression |
| display | boolean | false | Block mode with centering |
Blockmath
| prop | type | default | description |
|---|---|---|---|
| children | ReactNode | required | LaTeX expression |
Inlinemath
| prop | type | default | description |
|---|---|---|---|
| children | ReactNode | required | LaTeX expression |
Requirements
Requires KaTeX as a peer dependency.
Add KaTeX CSS to your layout: