UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

10 lines (9 loc) 673 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LabelAndFixedString = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); function LabelAndFixedString({ id, label, string, className }) { const clazz = className ? className : 'input-label'; return (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'labelValueButton' }, { children: [(0, jsx_runtime_1.jsx)("label", { className: clazz, htmlFor: id, dangerouslySetInnerHTML: { __html: label } }), (0, jsx_runtime_1.jsx)("input", { id: id, className: 'input', readOnly: true, type: 'text', value: string })] })); } exports.LabelAndFixedString = LabelAndFixedString;