Indicator

A dot or a small label on the edge of any element (Mantine's Indicator): "New" on an avatar, an unread count on a bell, an online dot. Nine positions, an inward offset, palette or CSS colors, a border and a live pulse.

Source on GitHub

On anything
Inbox
Native buildsray build --native

Messages  

Status
ray-remote · screen
Syncing
Positions
Counts, colors and sizes
+ 25 Mark read
Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-indicator> · RayIndicator

Wraps its content as tight as it is (fit-content). The label is part of the element's text for assistive technology; a dot has none: describe it on the content (aria-label="Grace, online").

PropertyAttributeTypeDefaultDescription
labellabelstringText in the indicator (a word or a count). Empty: a dot.
positionposition reflectstop-start | top-center | top-end | middle-start | middle-center | middle-end | bottom-start | bottom-center | bottom-endtop-endWhich point of the content's box it sits on.
offsetoffsetstringMoves it inward from that point: px as a number, or a CSS length. Use it on round content (an avatar), so it sits on the curve.
colorcolor reflectsstringA palette color or any CSS color. Default: the primary.
sizesizestringDiameter of the dot (and minimum height of a label): px as a number, or a CSS length. Default: 10px.
radiusradius reflectsstringCorner radius: xs…xl, none, or a CSS length. Default: round.
maxmaxnumberA numeric label above it shows as max+ (99+).
inlineinline reflectsbooleaninline-block, to sit within a line of text.
withBorderwith-border reflectsbooleanA ring in the background color, to separate it from the content.
processingprocessing reflectsbooleanA pulse around it (live, recording, syncing).
disableddisabled reflectsbooleanHides the indicator (the content stays).
SlotDescription
(default)The element the indicator sits on.
PartDescription
indicatorThe dot or label.