Loading Dots
Indeterminate wait inside a line of copy. Buttons use their own loading prop instead.
Sizes
Named sizes are sm (4px), md (6px), and lg (8px). Default is md. A number is the dot diameter in pixels.
With text
Default slot renders before the dots. Name the work that is still running.
Color
Dots use currentColor. Change the wrapper text color to retint them.
Best practices
- Short waits inside a sentence: Saving, Building, Deploying. Layout placeholders → Skeleton. Known progress → Progress. Icon-sized waits → Spinner.
- Do not drop dots into a Button label. Set
loadingon Button so the control stays the same size and remains focusable. - The trailing word names the work still in flight.
Savedplus dots is a contradiction. - The root already has
aria-live="polite". Meaning lives in the slot text; do not add a secondaria-labelon the dots. - Pass a numeric
sizeonly when a named size misses the adjacent type. One animated indicator per row.