On this page:

Corner Indicator

Preview

index.tsx
5
5
5
5
5
5

Corner indicator positions

Preview

index.tsx
5
5
5
5
23
23
23
23
connected
connected
connected
connected

Inset

Preview

index.tsx
chip-avatar
chip-avatar

Design Tokens for CornerIndicator

TokenColor forState/Meaning
--par-color-outline-corner-indicatorOutline colorOutline for indicator

CornerIndicator API Reference

<CornerIndicator />

PropTypeDefaultDescription
labelstringLabel text inside the indicator
iconReactNodeIcon for badge indicator
outlinebooleanfalseShow outline
pulsebooleanfalsePulse animation (dot only)
offsetnumber0Offset from corner (px)
xOffsetnumber0X offset from corner (px)
yOffsetnumber0Y offset from corner (px)
disablebooleanfalseDisable the indicator
position'top-left' | 'top-right' | 'bottom-left' | 'bottom-right''top-right'Position relative to container
color'gray' | 'orange' | 'violet' | 'green' | 'red' | 'yellow' | 'blue' | 'lime' | 'cyan''gray'Indicator color
size'md' | 'sm' | 'xs' | 'lg''md'Indicator size
variant'solid' | 'outlined' | 'glass''solid'Visual style
growDirection'symmetric' | 'inward' | 'outward''symmetric'Direction the indicator grows
indicatorPropsobjectExtra props for Badge/Dot (except size, color, variant, pulse)
...divPropsHTMLDivElement propsAll native div props (className, style, ...)

Note: CornerIndicator inherits all native props from HTMLDivElement.