Skip to content

DualRingSpinner

Default dual ring spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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