Skip to content

Roller2Spinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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