UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

12 lines 845 B
import { __rest } from "tslib"; import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/Form/form'; import { css } from '@patternfly/react-styles'; export const Form = (_a) => { var { children = null, className = '', isHorizontal = false, isWidthLimited = false, maxWidth = '' } = _a, props = __rest(_a, ["children", "className", "isHorizontal", "isWidthLimited", "maxWidth"]); return (React.createElement("form", Object.assign({ noValidate: true }, (maxWidth && { style: Object.assign({ '--pf-c-form--m-limit-width--MaxWidth': maxWidth }, props.style) }), props, { className: css(styles.form, isHorizontal && styles.modifiers.horizontal, (isWidthLimited || maxWidth) && styles.modifiers.limitWidth, className) }), children)); }; Form.displayName = 'Form'; //# sourceMappingURL=Form.js.map