Skip to content

v5.0.0

Compare
Choose a tag to compare
@fkhadra fkhadra released this 30 Nov 19:38

Release notes

🚀 Features

  • add useContextMenu hook
  • support custom position. close #94
  • possibility to hide an Item. close #139
  • possibility to prevent the menu from closing on item click. close #136
  • possibility to pass any HTML attribute (id, data-attribute, etc...). close #103
  • support keyboard navigation. close #24
  • menu can be mounted anywhere using react portal. close #138
  • the library is now tree-shakeable

🛠 Misc

  • switched to tsdx for build
  • fully tested with cypress
  • size reduction 💪. From 16.3kB to 9kB (3.4 gzipped)
  • new documentation!
  • animation and style reworked

🔥Breaking changes

  • MenuProvider removed
  • IconFont removed
  • props passed to show are no longer merged with data. More details on handling the click event on Item here
  • Menu is animated by default.