{"repo":"dip/cmdk","free":true,"listed":false,"github":"https://github.com/dip/cmdk","clone":"git clone https://github.com/dip/cmdk.git","description":"Fast, unstyled command menu React component.","language":"TypeScript","stars":12897,"topics":["combobox","command-palette","radix-ui","react","command-menu"],"license":"MIT","category":"ui-components","readme_excerpt":"⌘K ⌘K is a command menu React component that can also be used as an accessible combobox. You render items, it filters and sorts them automatically. ⌘K supports a fully composable API How? , so you can wrap items in other components or even as static JSX. Install Use Or in a dialog: Parts and styling All parts forward props, including ref , to an appropriate element. Each part has a specific data-attribute (starting with cmdk- ) that can be used for styling. Command [cmdk-root] Render this to show the command menu inline, or use Dialog to render in a elevated context. Can be controlled with the value and onValueChange props. Note Values are always trimmed with the trim() method. You can provide a custom filter function that is called to rank each item. Note that the value will be trimmed. A third argument, keywords , can also be provided to the filter function. Keywords act as aliases for the item value, and can also affect the rank of the item. Keywords are trimmed. Or disable filtering and sorting entirely: You can make the arrow keys wrap around the list (when you reach the end, it goes back to the first item) by setting the loop prop: Dialog [cmdk-dialog] [cmdk-overlay] Props are forwarded to Command. Composes Radix UI's Dialog component. The overlay is always rendered. See the Radix Documentation for more information. Can be controlled with the open and onOpenChange props. You can provide a container prop that accepts an HTML element that is forwarded to Radix UI's Dialog","default_branch":null,"files":null,"tree":[],"storefront":"/r/dip","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dip/cmdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}