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.
On anything
Native buildsray build --native
Messages
Status
ray-remote · screen
Positions
Counts, colors and sizes
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").
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
label | label | string | Text in the indicator (a word or a count). Empty: a dot. | |
position | position reflects | top-start | top-center | top-end | middle-start | middle-center | middle-end | bottom-start | bottom-center | bottom-end | top-end | Which point of the content's box it sits on. |
offset | offset | string | Moves 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. | |
color | color reflects | string | A palette color or any CSS color. Default: the primary. | |
size | size | string | Diameter of the dot (and minimum height of a label): px as a number, or a CSS length. Default: 10px. | |
radius | radius reflects | string | Corner radius: xs…xl, none, or a CSS length. Default: round. | |
max | max | number | A numeric label above it shows as max+ (99+). | |
inline | inline reflects | boolean | inline-block, to sit within a line of text. | |
withBorder | with-border reflects | boolean | A ring in the background color, to separate it from the content. | |
processing | processing reflects | boolean | A pulse around it (live, recording, syncing). | |
disabled | disabled reflects | boolean | Hides the indicator (the content stays). |
| Slot | Description |
|---|---|
| (default) | The element the indicator sits on. |
| Part | Description |
|---|---|
indicator | The dot or label. |