el.xwx.moe/components/ui/Divider.tsx

18 lines
392 B
TypeScript
Raw Normal View History

2024-10-29 17:08:47 -05:00
import clsx from "clsx";
import React from "react";
type Props = {
className?: string;
2024-11-07 01:09:56 -06:00
vertical?: boolean;
2024-10-29 17:08:47 -05:00
};
2024-11-07 01:09:56 -06:00
function Divider({ className, vertical = false }: Props) {
return vertical ? (
<hr className={clsx("border-neutral-content border-l h-full", className)} />
) : (
<hr className={clsx("border-neutral-content border-t", className)} />
);
2024-10-29 17:08:47 -05:00
}
export default Divider;