UNPKG

@arche-mc2/arche-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

21 lines 978 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var theming_1 = require("../../../Common/theming"); var styles_1 = require("./styles"); var withTheme_1 = require("../../../Common/theming/withTheme"); var UpFormGroup = function (props) { var title = props.title, children = props.children, theme = props.theme, withTitleSeparator = props.withTitleSeparator, others = tslib_1.__rest(props, ["title", "children", "theme", "withTitleSeparator"]); return (React.createElement("fieldset", tslib_1.__assign({ className: styles_1.getStyles(props) }, others), React.createElement("legend", null, title), children)); }; exports.UpFormGroup = UpFormGroup; UpFormGroup.defaultProps = { title: '', theme: theming_1.default, withTitleSeparator: false }; exports.default = withTheme_1.default(UpFormGroup); //# sourceMappingURL=UpFormGroup.js.map