返回 presentation-ai
fixed-toolbar-kit.tsx
根目录 / src / components / plate / plugins / fixed-toolbar-kit.tsx
1 "use client";
2
3 import { createPlatePlugin } from "platejs/react";
4
5 import { FixedToolbar } from "@/components/plate/ui/fixed-toolbar";
6 import { FixedToolbarButtons } from "@/components/plate/ui/fixed-toolbar-buttons";
7
8 export const FixedToolbarKit = [
9 createPlatePlugin({
10 key: "fixed-toolbar",
11 render: {
12 beforeContainer: () => (
13 <FixedToolbar>
14 <FixedToolbarButtons />
15 </FixedToolbar>
16 ),
17 },
18 }),
19 ];
20
20 lines Plain Text