question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MenuButton missing prop type defs

See original GitHub issue

MenuButton seems to be missing isActive and rightIcon typescript prop types.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
wouterdscommented, Apr 3, 2020

Nasty, that works too @iRoachie!

But just for the record @segunadebayo; example in the docs doesn’t work out of the box (in TS).

1reaction
iRoachiecommented, Apr 3, 2020

Using this as my workaround:

<MenuButton
  as={Button}
  {...{
    rightIcon: 'chevron-down',
  }}
>
  Hey
</MenuButton>
Read more comments on GitHub >

github_iconTop Results From Across the Web

React eslint error missing in props validation - Stack Overflow
Functional React component. Defined as object. I got this error because I copied and pasted the object from a different with a slightly...
Read more >
FAQ - Ant Design
Here are the frequently asked questions about Ant Design and antd that you should look up before you ask in the community or...
Read more >
ARIA: button role - Accessibility - MDN Web Docs
A menu button is a button that controls a menu and has an aria-haspopup property attribute set to either menu or true ....
Read more >
Element: <oj-select-single> - Oracle
Property change listener attribute (must be of type function, see Events and Listeners for additional information.) on-data-changed. (nullable) ...
Read more >
ARIA Authoring Practices Guide | APG | WAI - W3C
Design Patterns and Examples. Learn how to make accessible web components and widgets with ARIA roles, states and properties and by implementing keyboard ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found