About
Glass robot loader: a morphing glass tile with an expressive robot face, indeterminate or progress-driven
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glass Robot Loader to your project and fits it to your theme.
Code
How Glass Robot Loader is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client"
import { useEffect, useState } from "react"
import GlassRobotLoader from "@/components/ui/glass-robot-loader"
export default function GlassRobotLoaderDemo() {
const [progress, setProgress] = useState(0)
useEffect(() => {
const id = setInterval(() => setProgress((p) => (p >= 100 ? 0 : Math.min(100, p + 4))), 220)
return () => clearInterval(id)
}, [])
return (
<div
style={{
width: "100%",
minHeight: "100svh",
display: "grid",
placeItems: "center",
padding: 32,
color: "#fff",
background: "radial-gradient(120% 90% at 50% 40%, #10142a 0%, #05060c 60%, #020205 100%)",
}}
>
<div style={{ display: "flex", flexWrap: "wrap", alignItems: "center", justifyContent: "center", gap: 64 }}>
<GlassRobotLoader />
<GlassRobotLoader progress={progress} label="Uploading" />
<GlassRobotLoader width={120} height={96} radius={34} label="Syncing" showLabel={false} />
</div>
</div>
)
}
