From c1e28224aa2e1450031669d9a7e359b63e04687d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 22 Jul 2026 19:40:59 +0200 Subject: Init --- src/ui/objects/Badge.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ui/objects/Badge.tsx (limited to 'src/ui/objects/Badge.tsx') diff --git a/src/ui/objects/Badge.tsx b/src/ui/objects/Badge.tsx new file mode 100644 index 0000000..e98ef0d --- /dev/null +++ b/src/ui/objects/Badge.tsx @@ -0,0 +1,19 @@ +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 + +); -- cgit v1.3.1