Sinua
Catalog

Core

The smallest loading states for text: a shimmer and typing dots.

The core is the smallest object: loading states for text, a shimmer while content generates and dots while someone types.

See every core pattern live

When to use which pattern

PatternpatternWhen to use it
GeneratinggeneratingContent is being generated: a shimmering skeleton line.
TypingtypingSomeone is typing: three bouncing dots.

Props

Every prop, per pattern. Values are your app's data; everything else is style. Defaults can differ per size (20 · 32 · 64).

The core component is SinuaCore. Pick a look with pattern; each pattern reads the props below. Sizes are engine sizes (20, 32, 64): defaults can differ per size.

PatternModeSpeedValues (app data)
Generating (generating)shimmer1×—
Typing (typing)dots1×—

Generating

pattern: "generating" · mode shimmer · speed 1× · sizes 20, 32, 64

PropCategoryTypeRangeDefaultDescription
highlightFillAppearanceboolean0Draw the highlight as one smooth gradient band instead of stepped layers.
highlightLengthAppearancenumber0.05–1 (UI 0.1–0.8) fraction0.35Highlight length as a fraction of the track.
hueAppearancenumber0–360 deg200Ink hue in degrees; applies once saturation is above 0.
inkAppearancenumber0–1 fraction1How present the whole visual is: 1 draws it as the pattern defines it, lower fades everything including its halos. A voice assistant rests below 1 when idle and comes to full ink when it listens.
saturationAppearancenumber0–1 fraction0How far the ink moves from grey toward the hue (0 = the grey ink).
thicknessAppearancenumber0.01–0.5 (UI 0.02–0.3) fraction0.12Track thickness as a fraction of the frame.
trackOpacityAppearancenumber0–1 (UI 0–0.6) fraction0.18Opacity of the track behind the highlight (0 = highlight only).
periodMotionnumber0.05–30 (UI 0.5–4) s1.5Seconds per highlight sweep.
Advanced props (1)
PropCategoryTypeRangeDefaultDescription
lengthAppearancenumber0.1–1 fraction0.84Track length as a fraction of the frame.

Typing

pattern: "typing" · mode dots · speed 1× · sizes 20, 32, 64

PropCategoryTypeRangeDefaultDescription
hueAppearancenumber0–360 deg200Ink hue in degrees; applies once saturation is above 0.
inkAppearancenumber0–1 fraction1How present the whole visual is: 1 draws it as the pattern defines it, lower fades everything including its halos. A voice assistant rests below 1 when idle and comes to full ink when it listens.
saturationAppearancenumber0–1 fraction0How far the ink moves from grey toward the hue (0 = the grey ink).
bounceAmplitudeMotionnumber0–0.5 (UI 0–0.3) fraction0.12Bounce height as a fraction of the frame.
delayMotionnumber0–5 (UI 0–0.6) s0.2Seconds between one dot's bounce and the next.
periodMotionnumber0.05–30 (UI 0.4–3) s1.2Seconds per bounce cycle.
Advanced props (3)
PropCategoryTypeRangeDefaultDescription
dotCountAppearanceinteger1–63Number of bouncing dots.
dotSizeAppearancenumber0.01–0.3 fraction0.06Dot radius as a fraction of the frame.
spacingAppearancenumber0.02–0.5 fraction0.22Gap between dots as a fraction of the frame.

On this page