1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import styles from '@patternfly/react-styles/css/components/Form/form';
|
4 | import { css } from '@patternfly/react-styles';
|
5 | export 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 | };
|
11 | Form.displayName = 'Form';
|
12 |
|
\ | No newline at end of file |