Function
AutocompleteItem
({
className,
children,
...props
}: AutocompletePrimitive.Item.Props)
Source from the content-addressed store, hash-verified
| 109 | } |
| 110 | |
| 111 | function AutocompleteItem({ |
| 112 | className, |
| 113 | children, |
| 114 | ...props |
| 115 | }: AutocompletePrimitive.Item.Props) { |
| 116 | return ( |
| 117 | <AutocompletePrimitive.Item |
| 118 | className={cn( |
| 119 | "flex min-h-8 cursor-default select-none items-center rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm", |
| 120 | className, |
| 121 | )} |
| 122 | data-slot="autocomplete-item" |
| 123 | {...props} |
| 124 | > |
| 125 | {children} |
| 126 | </AutocompletePrimitive.Item> |
| 127 | ); |
| 128 | } |
| 129 | |
| 130 | function AutocompleteSeparator({ |
| 131 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected