import * as React from "react" import { cn } from "@/lib/utils" export type DividerProps = React.ComponentProps<"div"> & { orientation?: "horizontal" | "vertical" dashed?: boolean label?: React.ReactNode labelPosition?: "start" | "center" | "end" } function Divider({ orientation = "horizontal", dashed = false, label, labelPosition = "center", className, ...props }: DividerProps) { if (orientation === "vertical") { return (
) } if (!label) { return ( ) } return (