cmdk
โ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
Links
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
ChakraUI
Create accessible web applications quickly and efficiently with a robust set of essential components that are easy to use and highly customizable.
MaterialUI
This product offers a robust set of tools for building user interfaces in React, focusing on flexibility and adherence to design standards.
Radix Primitives
Unstyled, accessible, open source React primitives for high-quality web apps and design systems.
Skeleton
An adaptive and accessible toolkit that enhances the development of modern web applications.
ArkUI
This open-source UI solution enables the creation of sophisticated design systems using customizable components that can be adapted to fit various visual styles and accessibility standards.
daisyUI
This tool empowers developers to build beautiful user interfaces quickly and efficiently by providing semantic class names that streamline the development process.