How to use @patternfly/patternfly - 10 common examples

To help you get started, we’ve selected a few @patternfly/patternfly 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 / Modal / ModalBoxHeader.js View on Github external
const ModalBoxHeader = ({ hideTitle, children, className, ...props }) => {
  const hidden = hideTitle ? css(accessibleStyles.screenReader) : '';

  return 
    <title size="2xl">
      {children}
    </title>
  ;
};
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Alert / Alert.js View on Github external
const Alert = ({
  variant,
  variantLabel,
  'aria-label': ariaLabel = getDefaultAriaLabel(variant),
  action,
  title,
  children,
  className,
  ...props
}) =&gt; {
  variantLabel = variantLabel || capitalize(AlertVariant[variant]);
  const readerTitle = (
    
      <span>{`${variantLabel} alert:`}</span>
      {title}
    
  );

  const customClassName = css(styles.alert, getModifier(styles, variant, styles.modifiers.info), className);

  return (
    <div aria-label="{ariaLabel}">
      
      <h4>{readerTitle}</h4>
      {children &amp;&amp; (
        <div>
          <p>{children}</p>
        </div>
      )}
      {action &amp;&amp; (</div>
github apache / qpid-dispatch / console / react / src / overview / dashboard / layout.js View on Github external
{item.title ? item.title : utils.Icap(key)}
                      
                    
                  );
                })}
              
            );
          })}
        
      
    );
    const PageToolbar = (
      
        
          
            <button aria-label="Toggle Connect Form" id="connectButton">
              
            </button>
          
          
             (this.notificationRef = el)}
              suppress={this.state.suppress}
            /&gt;
github integr8ly / tutorial-web-app / src / components / masthead / masthead.js View on Github external
const logoProps = {
      onClick: () =&gt; this.onTitleClick()
    };

    const gsUrl =
      'https://access.redhat.com/documentation/en-us/red_hat_managed_integration/1/html-single/getting_started/';
    const riUrl =
      'https://access.redhat.com/documentation/en-us/red_hat_managed_integration/1/html-single/release_notes/';
    const csUrl = 'https://access.redhat.com/support/';

    const MastheadToolbar = (
      
        
          
            
              <button aria-label="Settings">
                
              </button>
github EnMasseProject / enmasse / console / console-init / ui / src / components / Layout / Layout.js View on Github external
];
    const PageToolbar = (
      
        
          
            }
              isOpen={isHelpDropdownOpen}
              dropdownItems={helpDropdownItems}
            /&gt;
          
          
            {this.props.user}}
              dropdownItems={userDropdownItems}
            /&gt;
          
        
      
    );

    const Header = (
github apache / qpid-dispatch / console / react / src / overview / dashboard / layout.js View on Github external
aria-label="Toggle Connect Form"
              variant={ButtonVariant.plain}
            &gt;
              
            
          
          
             (this.notificationRef = el)}
              suppress={this.state.suppress}
            /&gt;
          
        
        
          
            
              {this.state.user}
            
             (this.dropdownRef = el)}
              handleContextHide={this.handleUserMenuHide}
              handleDropdownLogout={this.handleDropdownLogout}
              handleSuppress={this.handleSuppress}
              suppress={this.state.suppress}
              isConnected={this.isConnected}
              parentClass="user-button"
            /&gt;
github integr8ly / tutorial-web-app / src / components / masthead / masthead.js View on Github external
const { isUserDropdownOpen, isHelpDropdownOpen, showAboutModal } = this.state;

    const logoProps = {
      onClick: () =&gt; this.onTitleClick()
    };

    const gsUrl =
      'https://access.redhat.com/documentation/en-us/red_hat_managed_integration/1/html-single/getting_started/';
    const riUrl =
      'https://access.redhat.com/documentation/en-us/red_hat_managed_integration/1/html-single/release_notes/';
    const csUrl = 'https://access.redhat.com/support/';

    const MastheadToolbar = (
      
        
          
            
              <button aria-label="Settings">
                
              </button>
github EnMasseProject / enmasse / console / console-init / ui / src / components / MessagingInstances / MessagingInstances.js View on Github external
isOpen={this.state.isDeleteModalOpen}
                handleDeleteModalToggle={this.onDeleteToggle}
                handleDelete={this.handleDelete}
                deleteInstances={() =&gt; this.state.deleteInstances}
                addNotification={add}
              /&gt;
            
          )}
        
        
            
              
                
                  
                
                
                   this.openDeleteModal(this.getSelectedInstances())}
                  /&gt;
                
              
              
                
                  {this.createPaginator()}
                
              
            
            <table rows="{rows}" aria-label="table of messaging instances" id="table-instances">
              </table>
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / demos / Toolbar / examples / SimpleToolbarDemo.js View on Github external
<button aria-label="Insert Table">
              
            </button>
          
          
            <button aria-label="Insert Bulleted List">
              
            </button>
          
          
            <button aria-label="Action 1">
              Action
            </button>
          
          
            <button aria-label="Action 2">Action</button>
          
          {this.buildKebab()}
        
      
    );
  }
}