UNPKG

robust-react-ui

Version:

A React component library, built with a focus on accessibility, extensibility and reusability.

24 lines (19 loc) 935 B
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = require('react'); var React__default = _interopDefault(React); var index = require('../../../utils/getClassNames/index.js'); // Generated with util/create-component.js var Row = function (_a) { var _b; var children = _a.children, _c = _a.wrap, wrap = _c === void 0 ? true : _c, _d = _a.alignX, alignX = _d === void 0 ? 'left' : _d, _e = _a.alignY, alignY = _e === void 0 ? 'stretch' : _e; return (React__default.createElement("div", { "data-testid": "Row", className: index((_b = { 'rrui-row': true, 'rrui-row--wrap': wrap }, _b["rrui-row--align-x-" + alignX] = true, _b["rrui-row--align-y-" + alignY] = true, _b)) }, children)); }; module.exports = Row; //# sourceMappingURL=Row.js.map