AI State Loading
kokonut-ui/ai-loadingFreeComponent
Code loading pending.
Live preview
live · rendered by the registry
Rendered by kokonut-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://kokonutui.com/r/ai-loading.jsonSource
1"use client";23/**4 * @author: @kokonutui5 * @description: AI Loading State6 * @version: 1.0.07 * @date: 2025-06-268 * @license: MIT9 * @website: https://kokonutui.com10 * @github: https://github.com/kokonut-labs/kokonutui11 */1213import { useEffect, useRef, useState } from "react";1415const TASK_SEQUENCES = [16 {17 status: "Searching the web",18 lines: [19 "Initializing web search...",20 "Scanning web pages...",21 "Visiting 5 websites...",22 "Analyzing content...",23 "Generating summary...",24 ],25 },26 {27 status: "Analyzing results",28 lines: [29 "Analyzing search results...",30 "Generating summary...",31 "Checking for relevant information...",32 "Finalizing analysis...",33 "Setting up lazy loading...",34 "Configuring caching strategies...",35 "Running performance tests...",36 "Finalizing optimizations...",37 ],38 },39 {40 status: "Enhancing UI/UX",41 lines: [42 "Initializing UI enhancement scan...",43 "Checking accessibility compliance...",44 "Analyzing component animations...",45 "Reviewing loading states...",46 "Testing responsive layouts...",47 "Optimizing user interactions...",48 "Validating color contrast...",49 "Checking motion preferences...",50 "Finalizing UI improvements...",51 ],52 },53];5455const LoadingAnimation = ({ progress }: { progress: number }) => (56 <div className="relative h-6 w-6">57 <svg58 aria-label={`Loading progress: ${Math.round(progress)}%`}59 className="h-full w-full"60 fill="none"61 viewBox="0 0 240 240"62 xmlns="http://www.w3.org/2000/svg"63 >64 <title>Loading Progress Indicator</title>6566 <defs>67 <mask id="progress-mask">68 <rect fill="black" height="240" width="240" />69 <circle70 cx="120"71 cy="120"72 fill="white"73 r="120"74 strokeDasharray={`${(progress / 100) * 754}, 754`}75 transform="rotate(-90 120 120)"76 />77 </mask>78 </defs>7980 <style>81 {`82 @keyframes rotate-cw {83 from { transform: rotate(0deg); }84 to { transform: rotate(360deg); }85 }86 @keyframes rotate-ccw {87 from { transform: rotate(360deg); }88 to { transform: rotate(0deg); }89 }90 .g-spin circle {91// … truncated
What it pulls in
npm packages
Files it writes
More from kokonut-ui
All 40 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Action Search Baraction-search-bar | kokonut-ui | Components | Free | 2 deps · 2 files | |
| AI Input Searchai-input-search | kokonut-ui | Components | Free | 1 dep · 2 files | |
| AI Input Selectorai-prompt | kokonut-ui | Components | Free | 2 deps · 4 files | |
| AI Text Loadingai-text-loading | kokonut-ui | Components | Free | 1 dep | |
| AI Voiceai-voice | kokonut-ui | Components | Free | 2 deps | |
| Apple Activity Cardapple-activity-card | kokonut-ui | Components | Free | 1 dep | |
| Magnet Buttonattract-button | kokonut-ui | Components | Free | 2 deps | |
| Avatar Pickeravatar-picker | kokonut-ui | Components | Free | 2 deps |
