The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
export const Dropdown = ({
children,
show,
"data-testid": dataTestId,
}: {
children: React.ReactNode;
show: boolean;
"data-testid"?: string;
}) => {
if (!show) return null;
return (
<div
className='absolute -right-2 bg-primary text-primary z-20 border border-primary rounded-sm w-max'
data-testid={dataTestId ?? 'dropdown'}
>
{children}
</div>
);
};