SurfSense/surfsense_web/components/ui/highlight-node-static.tsx

13 lines
330 B
TypeScript

import * as React from 'react';
import type { SlateLeafProps } from 'platejs/static';
import { SlateLeaf } from 'platejs/static';
export function HighlightLeafStatic(props: SlateLeafProps) {
return (
<SlateLeaf {...props} as="mark" className="bg-highlight/30 text-inherit">
{props.children}
</SlateLeaf>
);
}