math-kit

PreviousNext
Docs
platecomponent

Preview

Loading preview…
registry/components/editor/plugins/math-kit.tsx
'use client';

import { EquationPlugin, InlineEquationPlugin } from '@platejs/math/react';

import {
  EquationElement,
  InlineEquationElement,
} from '@/registry/ui/equation-node';

export const MathKit = [
  InlineEquationPlugin.withComponent(InlineEquationElement),
  EquationPlugin.withComponent(EquationElement),
];

Installation

npx shadcn@latest add @plate/math-kit

Usage

import { MathKit } from "@/components/math-kit"
<MathKit />