File tree Expand file tree Collapse file tree
legacies/react/v2/components/primitives Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -218,15 +218,22 @@ function ComboboxCommandInput(props: React.ComponentPropsWithRef<typeof CommandI
218218 return < CommandInput placeholder = "Search item..." { ...props } />
219219}
220220
221+ /**
222+ * @description Composing of `Command` and `PopoverContent`
223+ * @argument commandProps —— props which will be passed to `Command` from `cmdk`
224+ */
221225function ComboboxContent ( {
222226 children,
223227 className,
228+ commandProps,
224229 ...props
225- } : { children ?: React . ReactNode ; className ?: string } & React . ComponentPropsWithRef <
226- typeof PopoverContent
227- > ) {
230+ } : {
231+ children ?: React . ReactNode
232+ className ?: string
233+ commandProps : React . ComponentPropsWithRef < typeof Command >
234+ } & React . ComponentPropsWithRef < typeof PopoverContent > ) {
228235 return (
229- < Command loop className = "w-fit" >
236+ < Command loop className = "w-fit" { ... commandProps } >
230237 < PopoverContent
231238 className = { cn ( 'w-(--radix-popover-trigger-width) bg-background p-0' , className ) }
232239 { ...props }
You can’t perform that action at this time.
0 commit comments