UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

10 lines (9 loc) 506 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import { useGridRoot } from "../context.js"; import { Viewport as Core } from "@1771technologies/lytenyte-core/yinternal"; export const Viewport = forwardRef(function Viewport(props, forwarded) { const ctx = useGridRoot(); const cellSelectionMode = ctx.grid.state.cellSelectionMode.useValue(); return (_jsx(Core, { ...props, "data-ln-has-cell-selection": cellSelectionMode !== "none", ref: forwarded })); });