BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/remocn/ai-prompt-flow

UI AI Prompt Flow

remocn/ai-prompt-flow
FreeComponent

An AI prompt composition: a prompt types into the field, the Generate button runs hover → press → loading, a skeleton shimmer reveals, then crossfades into the generated answer, and a ready toast slides in. A pure orchestrator — the shimmer is owned by the skeleton-block motion atom; every other channel comes from a composed primitive's hook.

Install it

npx shadcn@latest add https://www.remocn.dev/r/ai-prompt-flow.json

Source

registry/remocn-ui/ai-prompt-flow/index.tsxwww.remocn.dev/r/ai-prompt-flow.json
1"use client";
2
3import { Button } from "@/components/remocn/button";
4import { Input } from "@/components/remocn/input";
5import { Skeleton } from "@/components/remocn/skeleton";
6import { SkeletonBlock } from "@/components/remocn/skeleton-block";
7import { Toast } from "@/components/remocn/toast";
8import { useButtonTransition } from "@/components/remocn/use-button-transition";
9import { useInputTransition } from "@/components/remocn/use-input-transition";
10import { useSkeletonTransition } from "@/components/remocn/use-skeleton-transition";
11import { useToastTransition } from "@/components/remocn/use-toast-transition";
12import { type RemocnTheme, useRemocnTheme } from "@/lib/remocn-ui";
13
14export interface AiPromptFlowProps {
15 prompt?: string;
16 buttonLabel?: string;
17 answerLines?: string[];
18 toastTitle?: string;
19 theme?: Partial<RemocnTheme>;
20}
21
22const STAGE_W = 1280;
23const PROMPT_W = 520;
24const PROMPT_LEFT = (STAGE_W - PROMPT_W) / 2;
25const PROMPT_TOP = 168;
26const PROMPT_H = 92;
27
28const BTN_W = 200;
29const BTN_LEFT = (STAGE_W - BTN_W) / 2;
30const BTN_TOP = 278;
31const BTN_H = 64;
32
33const ANSWER_W = 560;
34const ANSWER_LEFT = (STAGE_W - ANSWER_W) / 2;
35const ANSWER_TOP = 380;
36
37const DEFAULT_ANSWER = [
38 "The thread debates the Q3 roadmap: ship the editor first,",
39 "defer billing to Q4, and pull the migration forward so",
40 "infra is unblocked before the team scales next quarter.",
41];
42
43export function AiPromptFlow({
44 prompt = "Summarize this thread",
45 buttonLabel = "Generate",
46 answerLines = DEFAULT_ANSWER,
47 toastTitle = "Response ready",
48 theme,
49}: AiPromptFlowProps) {
50 const resolved = useRemocnTheme(theme);
51 const opts = { theme };
52
53 const inputStyle = useInputTransition(
54 [
55 { at: 0, state: "active", duration: 1 },
56 { at: 0, state: "typing", duration: 50 },
57 ],
58 opts,
59 );
60
61 const buttonStyle = useButtonTransition(
62 [
63 { at: 52, state: "hover", duration: 6 },
64 { at: 58, state: "press", duration: 4 },
65 { at: 62, state: "loading", duration: 4 },
66 ],
67 opts,
68 );
69
70 const skeletonStyle = useSkeletonTransition(
71 [
72 { at: 64, state: "loading", duration: 1 },
73 { at: 150, state: "loaded", duration: 16 },
74 ],
75 {},
76 );
77
78 const panelOpacity = buttonStyle.spinnerOpacity;
79
80 const toastStyle = useToastTransition(
81 [
82 { at: 160, state: "visible", duration: 14 },
83 { at: 220, state: "hidden", duration: 14 },
84 ],
85 {},
86 );
87
88 return (
89 <div
90 style={{
91 position: "relative",
92// … truncated

What it pulls in

npm packages

  • remotion

Other registry items

  • @remocn/remocn-ui
  • @remocn/input
  • @remocn/button
  • @remocn/skeleton
  • @remocn/skeleton-block
  • @remocn/toast

Files it writes

  • registry/remocn-ui/ai-prompt-flow/index.tsx

Facts

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

Go to the source

www.remocn.dev Remocn/remocn on GitHub Raw registry item This item as JSON

More from remocn

All 282 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
UI AccordionaccordionremocnComponentsFree1 dep · 2 files
UI Alert Dialogalert-dialogremocnComponentsFree1 dep · 2 files
Animated Bar Chartanimated-bar-chartremocnComponentsFree1 dep
Animated Line Chartanimated-line-chartremocnComponentsFree1 dep
ASCII Dissolveascii-dissolveremocnComponentsFree2 deps
ASCII Renderascii-renderremocnComponentsFree1 dep
BackdropbackdropremocnComponentsFree1 dep
UI Blur Inblur-inremocnComponentsFree1 dep · 2 files

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