Files
front-ui-registry/.tooling/components/ui/separator.tsx

11 lines
401 B
TypeScript

import type { HTMLAttributes } from "react";
import { cn } from "@/lib/utils";
export interface SeparatorProps extends HTMLAttributes<HTMLDivElement> {
orientation?: "horizontal" | "vertical";
}
export function Separator({ className, orientation = "horizontal", ...props }: SeparatorProps) {
return <div role="separator" data-orientation={orientation} className={cn(className)} {...props} />;
}