Vercel/src/components/Switcher.tsx
2025-02-25 09:13:43 -06:00

25 lines
497 B
TypeScript

import { ReactNode } from 'react';
import { clsx } from 'clsx/lite';
export default function Switcher({
children,
type = 'regular',
}: {
children: ReactNode
type?: 'regular' | 'borderless'
}) {
return (
<div className={clsx(
'flex divide-x overflow-hidden',
'divide-medium',
'border rounded-md',
type === 'regular'
? 'border-medium'
: 'border-transparent',
type === 'regular' && 'shadow-xs',
)}>
{children}
</div>
);
};