robust-react-ui
Version:
A React component library, built with a focus on accessibility, extensibility and reusability.
16 lines (11 loc) • 726 B
JavaScript
;
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
// Generated with util/create-component.js
var Region = function (_a) {
var children = _a.children, ariaLabelledBy = _a.ariaLabelledBy, ariaLabel = _a.ariaLabel;
return (React__default.createElement("section", { "data-testid": "Region", className: "rrui-landmark__region", "aria-labelledby": ariaLabelledBy && ariaLabelledBy.length > 0 ? ariaLabelledBy : null, "aria-label": ariaLabel && ariaLabel.length > 0 ? ariaLabel : null }, children));
};
module.exports = Region;
//# sourceMappingURL=Region.js.map