type: extends HTMLSpanElement for BadgeProps type(#50730) (#50774)

This commit is contained in:
yuanliu 2024-09-10 21:59:23 +08:00 committed by GitHub
parent 4fffbea08f
commit 09895d9f03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ import useStyle from './style';
export type { ScrollNumberProps } from './ScrollNumber';
export interface BadgeProps {
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
/** Number to show in badge */
count?: React.ReactNode;
showZero?: boolean;