Inline + block math, KaTeX-powered.
KaTeX math rendering. Inline mode (`$E=mc^2$`) and block mode (`$$\\int$$`). Lazy-loads KaTeX on first render.
import { Math } from "@/components/ui/katex";
<Math inline source="E = mc^2" />
<Math source="\\int_a^b f(x) dx" />components/ui/ folder. You own the code.