How to use the @instructure/ui-overlays/lib/components/Popover.propTypes function in @instructure/ui-overlays

To help you get started, we’ve selected a few @instructure/ui-overlays 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 instructure / instructure-ui / packages / ui-core / src / components / PopoverMenu / index.js View on Github external
labelledBy={this.labelId}
          hidden={!this.show}
          ref={el => {
            this._menu = el
          }}
          onSelect={this.handleMenuSelect}
          onDismiss={this.handleMenuDismiss}
        >
          {children}
        
      
    )

    return (
      
        
          {safeCloneElement(this.props.trigger, {
            role: 'button',
            tabIndex: 0,
            ref: c => {
              this._trigger = c
            },
            'aria-haspopup': true,
            id: this.labelId
github instructure / instructure-ui / packages / ui-menu / src / components / Menu / MenuPopover / index.js View on Github external
onSelect={this.handleMenuSelect}
          onKeyDown={createChainedFunction(onKeyDown, this.handleMenuKeyDown)}
          onFlyoutDismiss={this.handleFlyoutDismiss}
          ref={el => {
            this._menu = el
            menuRef(el)
          }}
        >
          {children}
        
      
    )

    return (
       {
          this._popover = el
          popoverRef(el)
        }}
      >
        
          {safeCloneElement(this.props.trigger, {
            role: 'button',
            ref: el => { this._trigger = el },
            'aria-haspopup': true,
            id: this._labelId
          })}