返回 presentation-ai
table-cell-static.tsx
根目录 / src / components / notebook / presentation / editor / custom-elements / static / table-cell-static.tsx
1 import { cn } from "@/lib/utils";
2 import { SlateElement, type SlateElementProps } from "platejs/static";
3
4 export function TableCellStatic(props: SlateElementProps) {
5 return (
6 <div
7 className={cn("rounded border bg-card p-3 text-sm")}
8 style={{
9 backgroundColor: "var(--presentation-background)",
10 color: "var(--presentation-text)",
11 borderColor: "hsl(var(--border))",
12 }}
13 >
14 <SlateElement {...props}>{props.children}</SlateElement>
15 </div>
16 );
17 }
18
19
20
20 lines Plain Text