import type { ComponentPropsWithRef } from "react"; import { cn } from "../lib/utils"; type DivProps = ComponentPropsWithRef<"div">; type Props = & DivProps & { /** Whether the divider is visible. Defaults to `true`. */ active?: boolean; } & ( | { vertical: true; horizontal?: never } | { horizontal: true; vertical?: never } | { vertical?: never; horizontal?: never } ); /** Visual divider line — vertical or horizontal. */ function Divider({ className, ref, vertical, horizontal, active, ...props }: Props) { let v = vertical || !horizontal; return (
); } export { Divider };