Kmenu Versions Save

:rainbow: An animated and accessible command menu

v1-beta-git

1 year ago

This release contains some minor additions along with some fixes from the kmenu v1 beta.

💫

  • Make class names easier to style.
  • Fix bug with default background blur.
  • Added transitions for the command colours.
  • Removed default styling for non-module scoped SVGs.
  • Fix bug with children on the MenuProvider component.
  • Fix issues with UI elements not being interactive after closing/opening the menu in dev.

If you're on the beta, I would highly recommend that you upgrade onto this today.

v1-beta

1 year ago

The official beta for kmenu v1! I had officially released this on Product Hunt a while ago, and I saw a lot of crucial features lacking. This launch adds more enhanced functionality to the menu and improves DX.

💫

  • useCommands hook for sorting and dynamically updating commands
  • useKmenu hook for getting useful information such as states out the component
  • The MenuProvider component
  • Added default shortcuts for commands on the menu
  • Improved menu styling
  • Added new and useful types to define commands
  • Palette height dynamically adjusts for the commands, reducing unnecessary scroll
  • Better screen reader accessibility
  • Changed defaults of the menu theme configuration

Breaking changes

  • Commands have a completely different type now. They're organised into an array of categories, and each individual category has it's own array of commands. Check the documentation for more insight.
  • You do not need to define hooks anymore to handle the state of your component
  • Categories are no longer passed into the palettes. The new command type takes care of that automatically.
  • Individual config files are no longer passable onto the components. Pass them into the MenuProvider directly.
  • The PaletteConfig type has been renamed to MenuConfig
  • The main Palette has been renamed to CommandMenu

This is still a beta release! I would like to recieve some community feedback and fix some bugs before I release this :confetti_ball:

beta

1 year ago

Welcome to the first version of kmenu!

Features

  • Highly customisable
  • Animated with Framer Motion
  • Accessible
  • Nested routing
  • useShortcut hook to build your own shortcuts