@gitlab/ui
Version:
GitLab UI Components
33 lines (27 loc) • 653 B
JavaScript
import { extend, mergeData } from '../../vue';
import { NAME_FORM_ROW } from '../../constants/components';
import { PROP_TYPE_STRING } from '../../constants/props';
// --- Props ---
const props = {
tag: {
type: PROP_TYPE_STRING,
required: false,
default: 'div'
}
};
// --- Main component ---
// @vue/component
const BFormRow = /*#__PURE__*/extend({
name: NAME_FORM_ROW,
functional: true,
props,
render(h, _ref) {
let props = _ref.props,
data = _ref.data,
children = _ref.children;
return h(props.tag, mergeData(data, {
staticClass: 'form-row'
}), children);
}
});
export { BFormRow, props };