import type { HTMLTag, Polymorphic } from "corvos/plugins/jsx.ts"; export type Props = Polymorphic<{ as?: Tag; icon?: JSX.Element; variant?: "accent" | "positive" | "negative" | "warning"; }>; export const Alert = ({ children, as: Tag = "div" as T, variant, icon, class: cls, ...props }: Props) => ( {icon && {icon}} {children} );