Skip to content

RippleSpinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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