Skip to content

HeartSpinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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