Skip to content

BorderSpinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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