Component/Orbit
A fading half-arc rotating around a dot.
Speed750ms
Opacity100%
import { Orbit } from "loading-dev"; export function OrbitDemo() { return <Orbit size={48} />;}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { Orbit } from "loading-dev"; export function OrbitSize() { return ( <div className="flex items-center gap-6"> <Orbit size={16} /> <Orbit size={24} /> <Orbit 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 { Orbit } from "loading-dev"; export function OrbitClassName() { return <Orbit 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 { Orbit } from "loading-dev"; export function OrbitColor() { return <Orbit color="#f97316" size={32} />;}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { Orbit } from "loading-dev"; export function OrbitDuration() { return <Orbit duration={1500} size={32} />;}State
Pauses or resumes the animation and exposes the state of the spinner.
import { Orbit } from "loading-dev"; export function OrbitPlayState() { return <Orbit playState="paused" size={32} />;}Easing
Controls how the spinner rotates. linear moves at a constant speed, ease-in-out starts slowly, speeds up, then slows down.stacked combines the two so it changes speed without stopping. The default easing is linear.
import { Orbit } from "loading-dev"; export function OrbitEasing() { return ( <div className="flex items-center gap-6"> <Orbit easing="linear" size={32} /> <Orbit easing="ease-in-out" size={32} /> <Orbit easing="stacked" size={32} /> </div> );}