Skip to content

Component/Leap

Three dots in a row, the last one leaping to the front.

Speed1800ms
Opacity100%
import { Leap } from "loading-dev"; export function LeapDemo() {  return <Leap size={48} />;}

Size

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

import { Leap } from "loading-dev"; export function LeapSize() {  return (    <div className="flex items-center gap-6">      <Leap size={16} />      <Leap size={24} />      <Leap 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 { Leap } from "loading-dev"; export function LeapClassName() {  return <Leap 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 { Leap } from "loading-dev"; export function LeapColor() {  return <Leap color="#f97316" size={32} />;}

Duration

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

import { Leap } from "loading-dev"; export function LeapDuration() {  return <Leap duration={3600} size={32} />;}

State

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

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