BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/SmoothUI Registry/ai-task-list

Ai Task List

smoothui-registry/ai-task-list
FreeComponent

Live agent plan with nested steps, a drawn checkmark on completion and a travelling underline on whatever is running.

Install it

npx shadcn@latest add https://www.smoothui.dev/r/ai-task-list.json

Source

index.tsxwww.smoothui.dev/r/ai-task-list.json · first 6 KB
1"use client";
2
3import { cn } from "@/lib/utils";
4import { motion, useReducedMotion } from "motion/react";
5import { Fragment } from "react";
6
7const SPRING_DEFAULT = {
8 bounce: 0.1,
9 duration: 0.25,
10 type: "spring" as const,
11};
12const EASE_IN_OUT = [0.645, 0.045, 0.355, 1] as const;
13const CHECK_PATH = "M 3.5 7.5 L 6 10 L 10.5 4.5";
14const BOX_SIZE = 14;
15const UNDERLINE_SECONDS = 1.4;
16
17export type AITaskStatus = "pending" | "running" | "done" | "failed";
18
19export type AITask = {
20 /** Nested sub-steps, one level. */
21 children?: AITask[];
22 id: string;
23 label: string;
24 /** Short right-aligned note, e.g. "12/12" or "3 files". */
25 note?: string;
26 status: AITaskStatus;
27};
28
29export type AITaskListProps = {
30 className?: string;
31 /** Heading text. The counts are derived, never passed in. */
32 label?: string;
33 tasks: AITask[];
34};
35
36const flatten = (tasks: AITask[]): AITask[] =>
37 tasks.flatMap((task) => [task, ...flatten(task.children ?? [])]);
38
39const SUCCESS_COLOR = "oklch(72% 0.17 150)";
40const DANGER_COLOR = "oklch(63% 0.21 25)";
41
42const boxStroke = (status: AITaskStatus): string => {
43 if (status === "failed") {
44 return DANGER_COLOR;
45 }
46 if (status === "done") {
47 return SUCCESS_COLOR;
48 }
49 return "currentColor";
50};
51
52const TaskBox = ({
53 status,
54 shouldReduceMotion,
55}: {
56 shouldReduceMotion: boolean;
57 status: AITaskStatus;
58}) => {
59 const isDone = status === "done";
60 const isFailed = status === "failed";
61
62 return (
63 <span className="mt-0.5 flex size-3.5 shrink-0 items-center justify-center">
64 <svg
65 aria-hidden="true"
66 className="size-3.5"
67 viewBox={`0 0 ${BOX_SIZE} ${BOX_SIZE}`}
68 >
69 <motion.rect
70 animate={{
71 fillOpacity: isDone ? 0.12 : 0,
72 stroke: boxStroke(status),
73 }}
74 fill={isFailed ? DANGER_COLOR : SUCCESS_COLOR}
75 height={12}
76 rx={3.5}
77 strokeWidth={1.4}
78 transition={shouldReduceMotion ? { duration: 0 } : { duration: 0.2 }}
79 width={12}
80 x={1}
81 y={1}
82 />
83 {isDone && (
84 // Drawn, not faded: a check that draws itself reads as the act of
85 // ticking the box rather than a state that was always there.
86 // Drawn with a CSS keyframe rather than a motion value.
87 //
88 // Neither motion's `pathLength` shorthand nor an explicit
89 // `strokeDashoffset` animation resolved on these paths — the dash
90// … truncated

What it pulls in

npm packages

  • lucide-react
  • motion

Files it writes

  • index.tsx

Facts

Registry
SmoothUI Registry
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

www.smoothui.dev educlopez/smoothui on GitHub Raw registry item This item as JSON

More from SmoothUI Registry

All 178 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Agent Avataragent-avatarSmoothUI RegistryComponentsFreeno deps
Ai Approvalai-approvalSmoothUI RegistryComponentsFree2 deps
Ai Artifactai-artifactSmoothUI RegistryComponentsFree2 deps
Ai Branchai-branchSmoothUI RegistryComponentsFree2 deps
Ai Citationai-citationSmoothUI RegistryComponentsFree2 deps
Ai Context Meterai-context-meterSmoothUI RegistryComponentsFree2 deps
Ai Conversationai-conversationSmoothUI RegistryComponentsFree2 deps
Ai Coreai-coreSmoothUI RegistryComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex