Componentfeedback0.41 KB gzipZero dependencies

LoadingDots

Three dots bounce in sequence with keyframe animation; sizes sm/md/lg and tone prop.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add loading-dots

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { LoadingDots } from "@/components/ui/loading-dots" <LoadingDots size="md" tone="default" />

Source code

loading-dots.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxloading-dots.tsx48 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export type LoadingDotsProps = {  size?: "sm" | "md" | "lg";  tone?: "default" | "accent" | "destructive";} & React.HTMLAttributes<HTMLElement>; function getSizeClass(size: LoadingDotsProps["size"]): string {  switch (size) {    case "sm":      return "w-2 h-2";    case "lg":      return "w-4 h-4";    default:      return "w-3 h-3";

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { LoadingDots } from "@/components/ui/loading-dots"; <LoadingDots />
PropTypeDescription
size"sm" | "md" | "lg"Size of the dots.
tone"default" | "accent" | "destructive"Color tone of the dots.