UNPKG

@wordpress/interface

Version:

Interface module for WordPress. The package contains shared functionality across the modern JavaScript-based WordPress screens.

30 lines (29 loc) 650 B
/** * WordPress dependencies */ import { forwardRef } from '@wordpress/element'; /** * External dependencies */ import clsx from 'clsx'; import { jsx as _jsx } from "react/jsx-runtime"; const NavigableRegion = forwardRef(({ children, className, ariaLabel, as: Tag = 'div', ...props }, ref) => { return /*#__PURE__*/_jsx(Tag, { ref: ref, className: clsx('interface-navigable-region', className), "aria-label": ariaLabel, role: "region", tabIndex: "-1", ...props, children: children }); }); NavigableRegion.displayName = 'NavigableRegion'; export default NavigableRegion; //# sourceMappingURL=index.js.map