import type { HTMLAttributes, HTMLTag } from "corvos/plugins/jsx.ts"; export type Props = HTMLAttributes<"div" | "hr"> & { "level"?: "strong" | "medium" | "quiet" | "faint"; "variant"?: "static-black" | "static-white"; "vertical"?: boolean | "dot"; "label-as"?: HTMLTag; "children"?: JSX.Element; }; export const Divider = ({ children, level = "strong", variant, vertical, "label-as": Label = "span", class: cls, ...props }: Props) => children ? (
) : (
);