Skip to content

RollerSpinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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