Skip to content

DualRingSpinner

Default 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="primary" size="small" />
<DualRingSpinner color="secondary" />
<DualRingSpinner color="error" 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="info" speed="slow" />
<DualRingSpinner color="warning" />
<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 />: