Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationIndicator

Indicator

Display badges, dots, or labels on top of another element to show status, notifications, or counts.

Install Dependencies

npx
quickcode-ui add Indicator

Example

Basic Usage

5
99+

Positions

1
2
3
4
5
6
7
8
9

Sizes & Styles

3
12
99

Colors & Radius

New
5
!

Processing & Border

Live
12

With Avatar

JD
3
SK

Offset & Inline

5
10
Inline indicatorNew

Conditional Display

0
5

Props

PropTypeDefaultDescription
childrenReact.ReactNodeThe element to wrap with the indicator
labelReact.ReactNodeContent to display in the indicator (number, text, icon)
showZerobooleanfalseShow indicator when label is 0
dotbooleanfalseDisplay as a dot without label
inlinebooleanfalseDisplay inline instead of flex
sizenumber | string16Size of the indicator in pixels or custom value
radius'none' | 'sm' | 'md' | 'lg' | 'full''full'Border radius of the indicator
colorstring'bg-destructive'Background color class for the indicator
position'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end''top-end'Position of the indicator relative to children
offsetnumber0Offset in pixels to adjust indicator position
disabledbooleanfalseHide the indicator
processingbooleanfalseAdd pulsing animation to indicate processing state
withBorderbooleanfalseAdd border around indicator for better contrast
zIndexnumber200Z-index value for the indicator
classNamestringAdditional CSS classes for the wrapper element
Last updated on