Skip to content

BarsWaveSpinner

Default spinner

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

Colors

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

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

Sizes

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

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

Speeds

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

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

API

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