v1.0.0-beta
Pre-release
Pre-release
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.
Enhancements
useCommandshook for sorting and dynamically updating commandsuseKmenuhook for getting useful information such as states out the component- The
MenuProvidercomponent - 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
MenuProviderdirectly. - The
PaletteConfigtype has been renamed toMenuConfig - The main
Palettehas been renamed toCommandMenu
This is still a beta release! I would like to recieve some community feedback and fix some bugs before I release this 🎊