๐Ÿ’ 
cmdk logo

cmdk

component

โŒ˜K is a versatile command menu component designed for React applications. It reimagines the conventional approach to presenting interactive menus by offering a composable API that allows developers to wrap items within other components or JSX seamlessly. The focus on accessibility ensures that it can be utilized as an advanced combobox as well, catering to various user needs.Notably, the component automatically handles the filtering and sorting of items, providing a smooth user experience. By supporting keybindings, such as โŒ˜K to toggle the menu, it integrates well with fast-paced workflows. The component is styled using data attributes, allowing for easy customization while maintaining a clean, unstyled default look.Incorporating advanced features like nested menu structures, asynchronous loading, and the capability to manage large amounts of items efficiently, it is highly adaptable for a variety of applications, from simple projects to more complex ones like Vercel's command menu. Additionally, it embraces a modern design philosophy, ensuring compatibility with React 18, which enhances performance and reliability.

Features

  • Composable API
  • Accessible combobox functionality
  • Automatic filtering and sorting of items
  • Custom styling through data attributes
  • Support for keyboard shortcuts
  • Ability to handle nested items and groupings
  • Asynchronous item loading
  • Performance optimized for large lists up to 3000 items
  • Unstyled by default for custom styling

Stats

GitHub Stars10.2K

NPM Downloads1.2M/week

Details

Latest Version1.0.4

Created at7/15/2022

Updated at1/14/2025

LicenseMIT License

Related Items

Get a monthly E-Mail with the newest developments in UI!