Skip to content

ChasingDotsSpinner

Default spinner

Show code
default.tsx
import { ChasingDotsSpinner } from "@hrc/spinner";
export function ChasingDotsSpinnerDefault() {
return <ChasingDotsSpinner />;
}

Colors

Use the color prop to change the color of the spinner.

Show code
colors.tsx
import { ChasingDotsSpinner } from "@hrc/spinner";
export function ChasingDotsSpinnerColors() {
return (
<>
<ChasingDotsSpinner color="primary" />
<ChasingDotsSpinner color="secondary" />
<ChasingDotsSpinner color="error" />
<ChasingDotsSpinner color="info" />
<ChasingDotsSpinner color="warning" />
<ChasingDotsSpinner color="success" />
</>
);
}

Sizes

Set the size prop to change the size of the spinner.

Show code
sizes.tsx
import { ChasingDotsSpinner } from "@hrc/spinner";
export function ChasingDotsSpinnerSizes() {
return (
<>
<ChasingDotsSpinner color="primary" size="small" />
<ChasingDotsSpinner color="secondary" />
<ChasingDotsSpinner color="error" size="large" />
</>
);
}

Speeds

Set the speed prop to change the speed of the spinner.

Show code
speeds.tsx
import { ChasingDotsSpinner } from "@hrc/spinner";
export function ChasingDotsSpinnerSpeeds() {
return (
<>
<ChasingDotsSpinner color="info" speed="slow" />
<ChasingDotsSpinner color="warning" />
<ChasingDotsSpinner color="success" speed="fast" />
</>
);
}

API

See documentation below for reference to all of the props, classes and CSS variables (custom properties) available for <ChasingDotsSpinner />: