Skip to content

RingSpinner

Default ring spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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