@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
19 lines • 709 B
JavaScript
import * as React from 'react';
import { observer } from 'mobx-react';
import { css } from '../common';
import { getValue } from '../helpers';
import { Context } from '../context';
const formula = css `
padding: 9px 0px;
`;
export const FormulaComponent = props => {
const context = React.useContext(Context);
const value = getValue(props, context);
return (React.createElement("div", { className: "ui input" },
React.createElement("div", { className: formula }, value == null ? '#Formula' : value)));
};
export const FormulaView = {
Component: observer(FormulaComponent),
toString: (_owner, props, context) => getValue(props, context)
};
//# sourceMappingURL=formula_view.js.map