@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
20 lines (18 loc) • 509 B
JavaScript
import * as React from 'react';
import { FormView } from '../form_view';
import { css } from '../common';
export const formStyle = css `
.disabled,
:disabled {
opacity: 1 !important;
cursor: auto;
}
label {
cursor: auto !important;
}
label:before {
border: solid 1px #d4d4d5 !important;
}
`;
export const SemanticFormView = props => (React.createElement(FormView, Object.assign({}, props, { className: props.readOnly ? formStyle : '' })));
//# sourceMappingURL=form_view.js.map