import classnames from 'classnames' import { MergeAndOverride } from '../../../../types/utils' type BadgeProps = MergeAndOverride< React.ComponentProps<'span'>, { prepend?: React.ReactNode children: React.ReactNode className?: string closeButton?: boolean onClose?: (e: React.MouseEvent) => void closeBtnProps?: React.ComponentProps<'button'> size?: 'sm' } > function Badge({ prepend, children, className, closeButton = false, onClose, closeBtnProps, size, ...rest }: BadgeProps) { return ( {prepend} {children} {closeButton && ( )} ) } export default Badge