UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

22 lines 659 B
import React from 'react'; import FieldBlock from "../../FieldBlock/index.js"; import withComponentMarkers from "../../../../shared/helpers/withComponentMarkers.js"; import { jsx as _jsx } from "react/jsx-runtime"; function CompositionField(props) { const params = {}; if (props !== null && props !== void 0 && props.width) { params.width = 'stretch'; params.contentWidth = props.width; } return _jsx(FieldBlock, { ...props, ...params, composition: true, asFieldset: true }); } withComponentMarkers(CompositionField, { _supportsSpacingProps: true }); export default CompositionField; //# sourceMappingURL=Composition.js.map