@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
11 lines • 465 B
JavaScript
import React from 'react';
import { names } from '../common';
import { EditorContext } from './editor_context';
export const styleComponent = (style) => {
const Styled = (props) => {
const context = React.useContext(EditorContext);
return (React.createElement("div", Object.assign({}, props, { className: names(style(context.theme), props.className) }), props.children));
};
return Styled;
};
//# sourceMappingURL=styled_component.js.map