How to use the @patternfly/react-styles/css/components/Form/form.modifiers function in @patternfly/react-styles

To help you get started, we’ve selected a few @patternfly/react-styles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Form / Form.tsx View on Github external
export const Form: React.FunctionComponent = ({
  children = null,
  className = '',
  isHorizontal = false,
  ...props
}: FormProps) => (
  <form novalidate="">
    {children}
  </form>
);
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Form / FormGroup.tsx View on Github external
export const FormGroup: React.FunctionComponent = ({
  children = null,
  className = '',
  label,
  isRequired = false,
  isValid = true,
  validated = 'default',
  isInline = false,
  helperText,
  helperTextInvalid,
  fieldId,
  ...props
}: FormGroupProps) =&gt; {
  const validHelperText = (
    <div aria-live="polite" id="{`${fieldId}-helper`}">
      {helperText}
    </div>
  );

  const inValidHelperText = (
    <div aria-live="polite" id="{`${fieldId}-helper`}">
      {helperTextInvalid}
    </div>
  );

  return (
    
      {({ isHorizontal }: { isHorizontal: boolean }) =&gt; (
github 3scale / porta / app / javascript / src / Settings / components / Common / FormFieldset.jsx View on Github external
{({ isHorizontal }: { isHorizontal: boolean }) =&gt; (
      <fieldset>
        {isHorizontal ? <div>{children}</div> : children}
      </fieldset>
    )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Form / ActionGroup.tsx View on Github external
export const ActionGroup: React.FunctionComponent = ({
  children = null,
  className = '',
  ...props
}: ActionGroupProps) =&gt; {
  const customClassName = css(styles.formGroup, styles.modifiers.action, className);
  const classesHorizontal = css(styles.formHorizontalGroup);

  const formActionsComponent = <div>{children}</div>;
  return (
    
      {({ isHorizontal }: { isHorizontal: boolean }) =&gt; (
        <div>
          {isHorizontal ? <div>{formActionsComponent}</div> : formActionsComponent}
        </div>
      )}
    
  );
};
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Form / FormGroup.tsx View on Github external
helperTextInvalid,
  fieldId,
  ...props
}: FormGroupProps) =&gt; {
  const validHelperText = (
    <div aria-live="polite" id="{`${fieldId}-helper`}">
      {helperText}
    </div>
  );

  const inValidHelperText = (
    <div aria-live="polite" id="{`${fieldId}-helper`}">
      {helperTextInvalid}
    </div>
  );

  return (
    
      {({ isHorizontal }: { isHorizontal: boolean }) =&gt; (
        <div>
          {label &amp;&amp; (
            <label>
              <span>{label}</span>
              {isRequired &amp;&amp; (
                <span aria-hidden="true"></span></label></div>