Skip to content

Component/Radar

A fading beam sweeping around a faint dish.

Speed1500ms
Opacity100%
import { Radar } from "loading-dev"; export function RadarDemo() {  return <Radar size={48} />;}

Size

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

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

Duration

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

import { Radar } from "loading-dev"; export function RadarDuration() {  return <Radar duration={3000} size={32} />;}

State

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

import { Radar } from "loading-dev"; export function RadarPlayState() {  return <Radar 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 { Radar } from "loading-dev"; export function RadarEasing() {  return (    <div className="flex items-center gap-6">      <Radar easing="linear" size={32} />      <Radar easing="ease-in-out" size={32} />      <Radar easing="stacked" size={32} />    </div>  );}