UNPKG

@gechiui/components

Version:
36 lines (33 loc) 992 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { createElement } from "@gechiui/element"; /** * GeChiUI dependencies */ import { forwardRef } from '@gechiui/element'; function TreeGridRow(_ref, ref) { let { children, level, positionInSet, setSize, isExpanded, ...props } = _ref; return (// Disable reason: Due to an error in the ARIA 1.1 specification, the // aria-posinset and aria-setsize properties are not supported on row // elements. This is being corrected in ARIA 1.2. Consequently, the // linting rule fails when validating this markup. // // eslint-disable-next-line jsx-a11y/role-supports-aria-props createElement("tr", _extends({}, props, { ref: ref, role: "row", "aria-level": level, "aria-posinset": positionInSet, "aria-setsize": setSize, "aria-expanded": isExpanded }), children) ); } export default forwardRef(TreeGridRow); //# sourceMappingURL=row.js.map