@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
15 lines (14 loc) • 485 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
export function annotationComment(options) {
const color = options.color ?? "#f59e0b";
return () => (_jsx("div", { title: options.text, style: {
position: "absolute",
top: 0,
insetInlineEnd: 0,
width: 0,
height: 0,
borderTop: `8px solid ${color}`,
borderInlineStart: "8px solid transparent",
pointerEvents: "auto",
} }));
}