Design System

Feedback reference ​

Every indicator, threshold and duration. For what these mean, see Overview. For how to choose between them, see Usage.

Durations are in milliseconds and do not change when a user changes their interface text size.

Indicators ​

WaitShapeIndicator
Under 300msEitherNothing
300ms to 10sNot knownSpinner
300ms to 10sKnownSkeleton
Over 10sMeasurableProgress bar
Over 10sNo number obtainableSpinner, and text saying what is happening

Timing ​

ValueWhat it is
Delay before an indicator appears300msBelow this an indicator is noise
Minimum time on screen500msSo an indicator that appears never strobes
Worst case added to a finished operation800msDelay plus floor, short of the 1s limit
Perception limit100msAn action feels like it caused the result
Flow-of-thought limit1sA train of thought stays unbroken
Attention limit10sPast this a person has to be told how much longer

The floor binds where CLoading owns both branches. Where a parent chooses between idle, loading and success with its own branch, the loading subtree unmounts as soon as the load finishes and there is nothing left to hold, so a load landing between 300ms and 800ms can still flicker. The delay binds in both places.

Toasts ​

Value
Positionbottom-center
Visible at once3

Toast durations ​

SeverityOn screen
errorUntil dismissed
warnUntil dismissed
success3s plus 1s per 3 words, floor 4s, ceiling 12s
info3s plus 1s per 3 words, floor 4s, ceiling 12s

Toast politeness ​

SeverityRoleLive
error, warnalertassertive
success, infostatuspolite

The components ​

ComponentPropTypeRequired
CLoadingisLoadingbooleanYes
labelstringYes
CProgressvaluenumberYes
maxnumberYes
labelstringYes
CToastgroupstringNo

CLoading takes an indicator slot for the wait and a default slot for the content. It renders its own live region and holds both the delay and the floor. Before the delay has elapsed it renders neither slot, so the space goes blank rather than stale. CProgress writes role="meter" and the bounds from its counts, and its accessible name is the label alone.

useToast returns notifyError, notifyWarning, notifyInfo and notifySuccess. Each takes the message and an optional { duration }. The title is derived from the severity and comes from the message catalogue.

Where every number comes from ​

ValueSource
100ms, 1s, 10sNielsen's three response-time limits
300ms delayThe threshold below which an indicator reads as noise rather than as information
500ms floorDerived: the 1s limit minus the 300ms delay leaves 700ms, and 500 fits inside it. A new floor stays under that ceiling, which moves if the delay does
3s plus 1s per 3 wordsThe usual toast reading-time guideline, floored at 4s and capped at 12s
3 toastsA fourth pushes the first off the screen before it has been read
bottom-centerSet once in CToast, so no mount point can differ

What not to write ​

AvoidInstead
A hand-rolled delay before an indicatorCLoading, which carries the threshold and the announcement
A spinner for a wait whose shape is knownA skeleton previewing the layout that replaces it
A progress bar with no real numeratorA spinner and a sentence saying what is happening
role="progressbar" on a quotarole="meter" with the real counts
A percentage passed as the countThe count and its maximum, so the number announced is the number shown
A duration on an error toastNothing. An error carries no timer
A title passed at a toast call siteNothing. It is derived from the severity
A toast for a field errorThe message beside the field
A live region rendered with its text already in itThe empty region first, the text afterwards