A suite of components to create a command palette UI, including triggers, items, and loading states.
Name | Type | Default | Description |
---|---|---|---|
keys | Key[] | - | Array of key combinations to activate the command palette. |
setActive | Dispatch<SetStateAction<boolean>> | - | Function to control the active state of the command palette. |
className | string | - | Additional CSS classes for custom styling. |
...props | InputHTMLAttributes<HTMLInputElement> | - | Props passed to the underlying <input> element. |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The content of the command palette item. |
className | string | - | Additional CSS classes for custom styling. |
...props | ButtonHTMLAttributes<HTMLButtonElement> | - | Props passed to the underlying <button> element. |
Name | Type | Default | Description |
---|---|---|---|
isOpen | boolean | - | Controls the open state of the command palette. |
onOpenChange | (val: boolean) => void | - | Callback for when the open state changes. |
children | React.ReactNode | - | The content of the command palette. |
className | string | - | Additional CSS classes for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The menu items to display in the command palette. |
isLoading | boolean | - | Indicates if the command palette is loading. |
isEmpty | boolean | - | Indicates if there are no results to display. |
className | string | - | Additional CSS classes for custom styling. |
...props | HTMLAttributes<HTMLDivElement> | - | Props passed to the underlying <div> element. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional CSS classes for custom styling. |
...props | InputHTMLAttributes<HTMLInputElement> | - | Props passed to the underlying <input> element. |
Name | Type | Default | Description |
---|---|---|---|
heading | string | - | Optional heading for the command palette group. |
children | React.ReactNode | - | The content of the command palette group. |
className | string | - | Additional CSS classes for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional CSS classes for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
keys | Key[] | - | Array of key combinations to activate the command palette. |
setActive | Dispatch<SetStateAction<boolean>> | - | Function to control the active state of the command palette. |
className | string | - | Additional CSS classes for custom styling. |
...props | InputProps | - | Props passed to the underlying Input component. |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The content of the command palette item. |
className | string | - | Additional CSS classes for custom styling. |
...props | ButtonProps | - | Props passed to the underlying Button component. |
Name | Type | Default | Description |
---|---|---|---|
isOpen | boolean | - | Controls the open state of the command palette. |
onOpenChange | (val: boolean) => void | - | Callback for when the open state changes. |
children | React.ReactNode | - | The content of the command palette. |
className | string | - | Additional CSS classes for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | The menu items to display in the command palette. |
isLoading | boolean | - | Indicates if the command palette is loading. |
isEmpty | boolean | - | Indicates if there are no results to display. |
className | string | - | Additional CSS classes for custom styling. |
...props | GroupProps | - | Props passed to the underlying Group component. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional CSS classes for custom styling. |
...props | InputProps | - | Props passed to the underlying Input component. |
Name | Type | Default | Description |
---|---|---|---|
heading | string | - | Optional heading for the command palette group. |
children | React.ReactNode | - | The content of the command palette group. |
className | string | - | Additional CSS classes for custom styling. |
Name | Type | Default | Description |
---|---|---|---|
className | string | - | Additional CSS classes for custom styling. |