返回 presentation-ai
presentation-element-static.tsx
根目录 / src / components / notebook / presentation / editor / custom-elements / static / presentation-element-static.tsx
1 import { type SlateElementProps, SlateElement } from "platejs/static";
2
3 import { cn } from "@/lib/utils";
4
5 export function PresentationElementStatic(props: SlateElementProps) {
6 return (
7 <SlateElement
8 {...props}
9 className={cn(
10 "relative transition-all duration-300 select-text!",
11 props.className,
12 )}
13 >
14 {props.children}
15 </SlateElement>
16 );
17 }
18
19
20
20 lines Plain Text