@wordpress/components
Version:
UI components for WordPress.
23 lines (22 loc) • 835 B
JavaScript
import { forwardRef } from "@wordpress/element";
import RovingTabIndexItem from "./roving-tab-index-item.mjs";
import { jsx } from "react/jsx-runtime";
// packages/components/src/tree-grid/item.tsx
function UnforwardedTreeGridItem({ children, ...props }, ref) {
return /* @__PURE__ */ jsx(RovingTabIndexItem, {
ref,
...props,
children
});
}
/**
* `TreeGridItem` is used to create a tree hierarchy.
* It is not a visually styled component, but instead helps with adding
* keyboard navigation and roving tab index behaviors to tree grid structures.
*
* @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}
*/
const TreeGridItem = forwardRef(UnforwardedTreeGridItem);
TreeGridItem.displayName = "TreeGridItem";
export { TreeGridItem, TreeGridItem as default };
//# sourceMappingURL=item.mjs.map