MCPcopy Create free account

hub / github.com/albingroen/react-cmdk / functions

Functions27 in github.com/albingroen/react-cmdk

↓ 3 callersFunctionclassNames
( ...classes: Array<string | null | boolean | undefined> )
src/lib/utils.tsx:89
↓ 3 callersFunctionhandleChangeSelected
(direction?: "up" | "down")
src/components/CommandPalette.tsx:54
↓ 2 callersFunctiondoesChildMatchSearch
(search: string, children?: ReactNode)
src/lib/utils.tsx:61
↓ 2 callersFunctiondoesKeywordsMatchSearch
(search: string, keywords: string[])
src/lib/utils.tsx:69
↓ 2 callersFunctiongetListItemWrapperStyles
(selected: boolean, disabled?: boolean)
src/components/ListItem.tsx:17
↓ 2 callersFunctionrenderLinkContent
()
src/components/ListItem.tsx:67
↓ 1 callersFunctionfilterItems
( items: JsonStructure, search: string, { filterOnListHeading, }: { filterOnListHeading: boole
src/lib/utils.tsx:19
↓ 1 callersFunctiongetItemIndex
( items: JsonStructure, id: string, startIndex: number = 0 )
src/lib/utils.tsx:6
↓ 1 callersFunctiongetLabelFromChildren
(children: ReactNode)
src/lib/utils.tsx:77
↓ 1 callersFunctionhandleSelect
()
src/components/CommandPalette.tsx:92
↓ 1 callersFunctionrenderJsonStructure
(jsonStructure: JsonStructure)
src/lib/utils.tsx:95
↓ 1 callersFunctionuseHandleOpenCommandPalette
( setIsOpen: Dispatch<SetStateAction<boolean>> )
src/lib/utils.tsx:109
FunctionButton
({ closeOnSelect = true, showType = true, className, children, iconType, onClick, index, icon,
src/components/ListItem.tsx:127
FunctionCommandPalette
({ selected: selectedParent, placeholder = "Search", onChangeSelected, onChangeSearch, onChangeOpen,
src/components/CommandPalette.tsx:32
FunctionFreeSearchAction
({ label = "Search for", ...props }: FreeSearchActionProps)
src/components/FreeSearchAction.tsx:10
FunctionIcon
({ name, type = "solid", ...rest }: IconProps)
src/components/Icon.tsx:13
FunctionLink
({ renderLink: localRenderLink, closeOnSelect = true, disabled = false, showType = true, className,
src/components/ListItem.tsx:48
FunctionList
({ children, heading }: ListProps)
src/components/List.tsx:8
FunctionListItem
(props: ButtonProps & LinkProps)
src/components/ListItem.tsx:208
FunctionListItemContent
({ icon: ListItemIcon, iconType, children, type, }: ListItemContentProps)
src/components/ListItem.tsx:180
FunctionPage
({ searchPrefix, children, onEscape, id, }: PageProps)
src/components/Page.tsx:11
FunctionSearch
( { onChange, placeholder, prefix, value }: SearchProps, ref: Ref<HTMLInputElement> )
src/components/Search.tsx:12
FunctionTemplate
()
stories/CommandPalette.stories.tsx:19
FunctionWelcome
()
stories/CommandPalette.stories.tsx:185
FunctionclickAndClose
(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>)
src/components/ListItem.tsx:84
FunctionhandleKeyDown
(e: KeyboardEvent)
src/components/Page.tsx:24
FunctionhandleKeyDown
(e: KeyboardEvent)
src/lib/utils.tsx:113