Theia API Documentation v1.71.0
    Preparing search index...
    • Returns the ARIA/accessibility props that make a non-button HTML element keyboard-navigable and screen-reader-accessible as a button.

      Spread these onto the element alongside onClick and onKeyDown:

      <div {...buttonKeyboardProps(label)} onClick={handler} onKeyDown={e => isActivationKey(e) && handler()} />
      

      Parameters

      • ariaLabel: string
      • tabIndex: number = 0

      Returns HTMLAttributes<HTMLElement>