'use client';
import { ListPlugin } from '@platejs/list/react';
import { KEYS } from 'platejs';
import { IndentKit } from '@/registry/components/editor/plugins/indent-kit';
import { BlockList } from '@/registry/ui/block-list';
export const ListKit = [
...IndentKit,
ListPlugin.configure({
inject: {
targetPlugins: [
...KEYS.heading,
KEYS.p,
KEYS.blockquote,
KEYS.codeBlock,
KEYS.toggle,
KEYS.img,
],
},
render: {
belowNodes: BlockList,
},
}),
];
npx shadcn@latest add @plate/list-kitimport { ListKit } from "@/components/list-kit"<ListKit />