Skip to content

Component/Fill

A circle filling clockwise like a pie, then emptying.

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

Size

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

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

Duration

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

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

State

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

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