UNPKG

845 BJavaScriptView Raw
1import { __rest } from "tslib";
2import * as React from 'react';
3import styles from '@patternfly/react-styles/css/components/Form/form';
4import { css } from '@patternfly/react-styles';
5export const Form = (_a) => {
6 var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '' } = _a, props = __rest(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth"]);
7 return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && {
8 style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style)
9 }), props, { className: css(styles.form, isHorizontal && styles.modifiers.horizontal, (isWidthLimited || maxWidth) && styles.modifiers.limitWidth, className) }), children));
10};
11Form.displayName = 'Form';
12//# sourceMappingURL=Form.js.map
\No newline at end of file