MeetUp/src/components/ui/separator.tsx
Maximilian Liebmann 90a9c5d233
All checks were successful
container-scan / Container Scan (pull_request) Successful in 1m30s
docker-build / docker (pull_request) Successful in 2m53s
style: standardize quotes and formatting in Select, Separator, and Switch components
2025-05-12 12:57:51 +02:00

28 lines
711 B
TypeScript

'use client';
import * as React from 'react';
import * as SeparatorPrimitive from '@radix-ui/react-separator';
import { cn } from '@/lib/utils';
function Separator({
className,
orientation = 'horizontal',
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<SeparatorPrimitive.Root
data-slot='separator-root'
decorative={decorative}
orientation={orientation}
className={cn(
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
className,
)}
{...props}
/>
);
}
export { Separator };