@vs-form/vs-form
Version:
A schema-based form generator component for React using material-ui
29 lines (26 loc) • 818 B
JavaScript
import { Component, createElement } from 'react';
import classNames from 'classnames';
import '@material-ui/core/Typography';
import { a as Text } from './chunk-4358fb9c.js';
const styles = {
textPaddingTop: {
paddingTop: '1em'
}
};
class VsText extends Component {
constructor(props) {
super(props);
this.TypographyProps = {};
this.initProps();
}
get comp() { return this.props.comp; }
render() {
return (createElement(Text, Object.assign({ text: this.comp.text }, this.TypographyProps)));
}
initProps() {
this.TypographyProps = this.comp.props;
this.TypographyProps.className = classNames(this.props.classes.textPaddingTop, this.TypographyProps.className);
}
}
export default VsText;
export { styles };