A loading sign of three dots that swing and merge like liquid. For while a page or a form is loading.
How to use
Make two files in your project's components folder: gooey-loader.tsx and gooey-loader.module.css.
Paste the code into each one, keeping the licence note at the top of the component.
It needs nothing beyond React. Your project needs CSS Modules, which Next.js and Vite already have.
Import it where you want it, then change the words, colours and sizes to yours.
The code
"use client";
import { useId, type CSSProperties, type HTMLAttributes } from "react";
import styles from "./gooey-loader.module.css";
export interface LoaderGooeyBlobsProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
/** Width of each dot, in pixels. */
size?: number;
color?: string;
/** Seconds for one full swing. */
duration?: number;
}
This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
"use client";
import { useId, type CSSProperties, type HTMLAttributes } from "react";
import styles from "./gooey-loader.module.css";
export interface LoaderGooeyBlobsProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
/** Width of each dot, in pixels. */
size?: number;
color?: string;
/** Seconds for one full swing. */
duration?: number;
}
This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.