mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
13 lines
330 B
TypeScript
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>
|
|
);
|
|
}
|