Skip to content

BladeSpinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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