Skip to content

Component/Gather

Four blocks pulling together, turning, and pushing apart.

Speed1600ms
Opacity100%
import { Gather } from "loading-dev"; export function GatherDemo() {  return <Gather size={48} />;}

Size

Sets the spinner’s dimensions in pixels. The default value is 20

import { Gather } from "loading-dev"; export function GatherSize() {  return (    <div className="flex items-center gap-6">      <Gather size={16} />      <Gather size={24} />      <Gather size={40} />    </div>  );}

Custom Classes

You can use a custom className in case you need to tweak the spinner in a specific way that the library doesn’t provide.

import { Gather } from "loading-dev"; export function GatherClassName() {  return <Gather className="opacity-40" size={32} />;}

Color

The loader inherits currentColor from the parent by default. You can tint it in any way you want. It accepts any valid CSS color.

import { Gather } from "loading-dev"; export function GatherColor() {  return <Gather color="#f97316" size={32} />;}

Duration

Sets the speed in ms. Higher values are slower, smaller values are faster.

import { Gather } from "loading-dev"; export function GatherDuration() {  return <Gather duration={3200} size={32} />;}

State

Pauses or resumes the animation and exposes the state of the spinner.

import { Gather } from "loading-dev"; export function GatherPlayState() {  return <Gather playState="paused" size={32} />;}