(
className={cn(
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95"
)}
+ style={{ position: "absolute", pointerEvents: "auto" }}
>
- {
- props.items.length ? (
- props.items.map((item, index) => (
-
- ))
- ) : (
- (
+
- ) // Use Tailwind classes for the empty state, styled like an item, using cn
- }
+ {item.label}
+
+ ))
+ ) : (
+
+ No result
+
+ )}
);
}