LoadingLogo
Five loading animations built from the Wander logo strokes
Animate the Wander mark while content loads. For a compact inline indicator, use LoadingDots.
pnpm add @wandercom/design-system-web
import { LoadingLogo } from '@wandercom/design-system-web/ui/loading-logo';
export function Example() {
return <LoadingLogo />;
}The default variant is trace. The outer ring stays stationary in every variant. Scan illuminates it along with the inner strokes, keeping a faint, complete outline visible. The other variants keep the ring solid. Trace and Draw also keep the diagonal solid and stationary; Scan and the Signal variants illuminate it.
Use paused to pause and resume the animation.
The default size is 24px (size-6), and the logo inherits the surrounding text color. Set a different size and color with className, and adjust the cycle duration in seconds with duration.
import { LoadingLogo } from '@wandercom/design-system-web/ui/loading-logo';
export function Example() {
return (
<LoadingLogo
className="size-12 text-secondary"
duration={3}
label="Finding your stay…"
variant="trace"
/>
);
}The component accepts standard <span> props, except children.
variant?:
label?:
duration?:
paused?:
className?:
The indicator uses role="status" and an overridable label to announce the loading state. Its SVG is hidden from screen readers. If nearby text already announces the same state, pass aria-hidden="true" to avoid a duplicate announcement.
All variants respect prefers-reduced-motion: reduce and display the complete, static logo. The loading label remains available to assistive technology.