25 lines
448 B
TypeScript
25 lines
448 B
TypeScript
"use client";
|
|
|
|
import * as React from "react";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
function Separator({
|
|
className,
|
|
orientation = "horizontal",
|
|
}: React.HTMLAttributes<HTMLDivElement> & {
|
|
orientation?: "horizontal" | "vertical";
|
|
}) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"shrink-0 bg-border/80",
|
|
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
className,
|
|
)}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Separator };
|