();
const setWidth = () => {
if (contentRef.current) {
contentRef.current.style.width = containerRef.current
? `${containerRef.current.getBoundingClientRect().width}px`
: 'auto';
}
};
return (
}
className="flex items-center relative"
>
{
setWidth();
}}
defaultOpen={false}
>
}
className={classNames(
'z-20',
'bg-white dark:bg-black',
'border border-neutral-500 focus:border-black dark:focus:border-white',
'overflow-hidden',
'shadow-lg'
)}
position={'item-aligned'}
side={'bottom'}
align={'center'}
>
{children}
);
});
export const Option = forwardRef<
React.ElementRef,
React.ComponentProps
>(({ children, className, ...props }, forwardedRef) => (
{children}
));