import * as React from "react"; // helpers import { cn } from "../utils"; import { getIconStyling, getBadgeStyling, TBadgeVariant, TBadgeSizes } from "./helper"; export interface BadgeProps extends React.ButtonHTMLAttributes { variant?: TBadgeVariant; size?: TBadgeSizes; className?: string; loading?: boolean; disabled?: boolean; appendIcon?: any; prependIcon?: any; children: React.ReactNode; } const Badge = React.forwardRef((props, ref) => { const { variant = "primary", size = "md", className = "", type = "button", loading = false, disabled = false, prependIcon = null, appendIcon = null, children, ...rest } = props; const buttonStyle = getBadgeStyling(variant, size, disabled || loading); const buttonIconStyle = getIconStyling(size); return ( ); }); Badge.displayName = "plane-ui-badge"; export { Badge };