console/packages/web/docs/src/components/comparison.tsx
Piotr Monwid-Olechnowicz 4a865c03b2
Hive Blog (#6625)
Co-authored-by: Dotan Simha <dotansimha@users.noreply.github.com>
2025-03-27 16:12:42 +01:00

26 lines
497 B
TypeScript

import { ReactElement, ReactNode } from 'react';
import { cn } from '@theguild/components';
/**
* This is used in MDX blog posts.
*/
export function Comparison({
children,
className,
}: {
children: ReactNode;
className: string;
}): ReactElement {
return (
<div
className={cn(
'mt-6 grid grid-cols-2 items-stretch gap-1',
'*:!mt-0 [&_button]:hidden',
'[&_pre]:h-[calc(100%-3rem)]',
className,
)}
>
{children}
</div>
);
}