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?: ActionButtonProps["variant"]; pill?: boolean; selected?: boolean; size?: ActionButtonProps["size"]; children?: JSX.Element; }>; export const Badge = ({ as = "span" as T, ...props }: Props) => ( // deno-lint-ignore no-explicit-any );