How to use the @patternfly/react-core.ButtonVariant.secondary function in @patternfly/react-core

To help you get started, we’ve selected a few @patternfly/react-core 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 kiali / kiali-ui / src / components / IstioActions / IstioActionsButtons.tsx View on Github external
render() {
    return (
      <>
        <span style="{{">
          {!this.props.readOnly &amp;&amp; (
            <span style="{{">
              <button>
                Save
              </button>
            </span>
          )}
          <span style="{{">
            <button>
              Reload
            </button>
          </span>
          <span style="{{">
            <button>
              {this.props.readOnly ? 'Close' : 'Cancel'}
            </button>
          </span>
        </span>
      
    );
  }
github openshift / console / frontend / packages / dev-console / src / components / import / DeployImageForm.tsx View on Github external
project={values.project}
      noProjectsAvailable={projects.loaded &amp;&amp; _.isEmpty(projects.data)}
    /&gt;
    
    
    
      
        <button data-test-id="deploy-image-form-submit-btn" type="submit">
          Create
        </button>
        <button type="button">
          Cancel
        </button>
      
    
  
);
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / InputGroup / examples / SimpleInputGroups.js View on Github external
render() {
    return (
      
        
          <button id="textAreaButton1">
            Button
          </button>
          <textarea aria-label="textarea with buttons" id="textarea1" name="textarea1">          &lt;Button variant={ButtonVariant.tertiary}&gt;Button&lt;/Button&gt;
        &lt;/InputGroup&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;InputGroup&gt;
          &lt;TextArea name="textarea2" id="textarea2" aria-label="textarea with button" /&gt;
          &lt;Button id="textAreaButton2" variant={ButtonVariant.tertiary}&gt;
            Button
          &lt;/Button&gt;
        &lt;/InputGroup&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;InputGroup&gt;</textarea>
github openshift / console / frontend / packages / dev-console / src / components / import / SourceToImageForm.tsx View on Github external
<button type="submit">
          Create
        </button>
        <button type="button">
          Cancel
        </button>
      
    
  
);
github openshift / console / frontend / packages / kubevirt-plugin / src / components / create-vm-wizard / tabs / storage-tab / storage-tab.tsx View on Github external
}).result,
      ),
    isDisabled: isLocked,
  };

  return (
    <div>
      
        
          <title size="lg">
            Disks
          </title>
        
        {showStorages &amp;&amp; (
          
            <button>
              {ADD_DISK}
            </button>
          
        )}
      
      {showStorages &amp;&amp; (
        &lt;&gt;
          <div>
            
          </div>
          {isBootDiskRequired &amp;&amp; (</div>
github openshift / console / frontend / packages / dev-console / src / components / import / GitImportForm.tsx View on Github external
project={values.project}
      noProjectsAvailable={projects.loaded &amp;&amp; _.isEmpty(projects.data)}
    /&gt;
    
    
    
      
        <button data-test-id="import-git-create-button" type="submit">
          Create
        </button>
        <button type="button">
          Cancel
        </button>
      
    
  
);
github openshift / console / frontend / packages / metal3-plugin / src / components / baremetal-hosts / add-baremetal-host / AddBareMetalHostForm.tsx View on Github external
<button data-test-id="add-baremetal-host-form-submit-btn" type="submit">
            Create
          </button>
          <button type="button">
            Cancel
          </button>
        
      
    
  );
};
github openshift / console / frontend / packages / dev-console / src / components / form-utils / FormFooter.tsx View on Github external
{showAlert &amp;&amp; (
      
        Click Save to save changes or Reload to cancel.
      
    )}
    
      <button type="{handleSubmit">
        Save
      </button>
      <button type="button">
        Reload
      </button>
    
  
);
github openshift / console / frontend / packages / kubevirt-plugin / src / components / create-vm-wizard / tabs / networking-tab / networking-tab.tsx View on Github external
}).result,
      ),
    isDisabled: isLocked,
  };

  return (
    <div>
      
        
          <title size="lg">
            Network Interfaces
          </title>
        
        {showNetworks &amp;&amp; (
          
            <button>
              {ADD_NETWORK_INTERFACE}
            </button>
          
        )}
      
      {showNetworks &amp;&amp; (
        &lt;&gt;
          
          {isBootNICRequired &amp;&amp; (
            </div>
github fabric8-ui / fabric8-ui / packages / components / react-widgets / src / components / Button / Button.tsx View on Github external
isSecondary,
  isTertiary,
  isDanger,
  isPlain,
  isLink,
  href,
  ...props
}) =&gt; (
  
);