Components / UI components / Rich Content
Rich contentExperimental alpha
MathFormula
LaTeX formulas through KaTeX with accessible MathML and bounded parsing.
MathFormula preview
Loading example…
Interactions use local sample data.
Usage and props
Use inline within a sentence, block for a standalone equation and scroll for a wide formula. Import the KaTeX stylesheet in your application. Load KaTeX CSS; trust is disabled and expansion/size limits are fixed.
formulastring- TeX source, up to 10,000 characters. Invalid or longer input shows a source preview and message.
labelstring (optional)- An accessible name. Defaults to Mathematical formula.
These are the main props for the example. The package's TypeScript declarations include the full API.