返回 presentation-ai
kbd-node-static.tsx
根目录 / src / components / plate / ui / kbd-node-static.tsx
1 import { SlateLeaf, type SlateLeafProps } from "platejs/static";
2
3 export function KbdLeafStatic(props: SlateLeafProps) {
4 return (
5 <SlateLeaf
6 {...props}
7 as="kbd"
8 className="rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-sm shadow-[rgba(255,255,255,0.1)_0px_0.5px_0px_0px_inset,rgb(248,249,250)_0px_1px_5px_0px_inset,rgb(193,200,205)_0px_0px_0px_0.5px,rgb(193,200,205)_0px_2px_1px_-1px,rgb(193,200,205)_0px_1px_0px_0px] dark:shadow-[rgba(255,255,255,0.1)_0px_0.5px_0px_0px_inset,rgb(26,29,30)_0px_1px_5px_0px_inset,rgb(76,81,85)_0px_0px_0px_0.5px,rgb(76,81,85)_0px_2px_1px_-1px,rgb(76,81,85)_0px_1px_0px_0px]"
9 >
10 {props.children}
11 </SlateLeaf>
12 );
13 }
14
14 lines Plain Text