UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

9 lines (8 loc) 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TwoElementWithTitleLayout = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); function TwoElementWithTitleLayout({ title, children }) { return (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'labelCheckboxButton' }, { children: [(0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "checkbox-container" }, { children: [title, children[0]] })), children[1]] })); } exports.TwoElementWithTitleLayout = TwoElementWithTitleLayout;