Function
CommandInput
({
className,
placeholder = undefined,
...props
}: React.ComponentProps<typeof AutocompleteInput>)
Source from the content-addressed store, hash-verified
| 114 | } |
| 115 | |
| 116 | function CommandInput({ |
| 117 | className, |
| 118 | placeholder = undefined, |
| 119 | ...props |
| 120 | }: React.ComponentProps<typeof AutocompleteInput>) { |
| 121 | const { inputRef } = React.useContext(CommandInputContext); |
| 122 | |
| 123 | return ( |
| 124 | <div className="px-2.5 py-1.5"> |
| 125 | <AutocompleteInput |
| 126 | className={cn( |
| 127 | "border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0", |
| 128 | className, |
| 129 | )} |
| 130 | placeholder={placeholder} |
| 131 | ref={inputRef} |
| 132 | size="lg" |
| 133 | startAddon={<HugeiconsIcon icon={Search01Icon} />} |
| 134 | {...props} |
| 135 | /> |
| 136 | </div> |
| 137 | ); |
| 138 | } |
| 139 | |
| 140 | function CommandList({ |
| 141 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected