import type { HTMLTag, Polymorphic } from "corvos/plugins/jsx.ts"; import type { Props as ActionButtonProps } from "./ActionButton.tsx"; import { ActionButton } from "./ActionButton.tsx"; export type Props = Polymorphic<{ as?: Tag; variant?: "primary" | ActionButtonProps["variant"]; size?: ActionButtonProps["size"]; wide?: boolean; justify?: boolean; children?: JSX.Element; }>; export const Button = ({ as = "a" as T, variant, ...props }: Props) => ( );