Skip to main content

Badge

Small numerical value or status descriptor for UI elements.

When To Use#

Badge normally appears in proximity to notifications or user avatars with eye-catching appeal, typically displaying unread messages count.

Examples#

import { Badge } from 'tailor-ui';

Basic#

2

Standalone#

Notifications

2

Customized color#

16
99+

Overflow count#

99
99+
10+
999+

Dynamic count#



API#

PropertyDescriptionTypeDefault
countNumber to show in badgenumber
overflowCountMax count to shownumber99
showZeroWhether to show badge when count is zerobooleanfalse
wrapperPropsProps of badge wrapperBoxProps
colorCount colorstring
bgbackground colorstring
borderColorborder colorstring