BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Brainframe UI Registry/gooey-ai

gooey-ai

brainframe-ui-registry/gooey-ai
FreeComponent

A gooey AI prompt component with an expandable dialog, controlled textarea, and customizable trigger.

Install it

npx shadcn@latest add https://www.brainframeui.tech/r/gooey-ai.json

Source

registry/new-york/gooey-ai/GooeyAI.tsxwww.brainframeui.tech/r/gooey-ai.json · first 6 KB
1"use client";
2
3import { cn } from "@/lib/utils";
4import { ArrowUp, PlusIcon, Square } from "lucide-react";
5import { easeOut, motion } from "motion/react";
6import {
7 createContext,
8 ReactNode,
9 useContext,
10 useEffect,
11 useRef,
12 useState,
13} from "react";
14
15type GooeyAIContextType = {
16 value: string;
17 setValue: React.Dispatch<React.SetStateAction<string>>;
18 isLoading: boolean;
19 onSubmit: () => void;
20
21 isExpanded: boolean;
22 setIsExpanded: React.Dispatch<React.SetStateAction<boolean>>;
23
24 rootRef: React.RefObject<HTMLDivElement | null>;
25};
26
27const GooeyAIContext = createContext<GooeyAIContextType | null>(null);
28function useGooeyAI() {
29 const context = useContext(GooeyAIContext);
30
31 if (!context) {
32 throw new Error("GooeyAI components must be inside <GooeyAI>");
33 }
34
35 return context;
36}
37
38type GooeyAIProps = {
39 children: ReactNode;
40 value: string;
41 setValue: React.Dispatch<React.SetStateAction<string>>;
42 isLoading: boolean;
43 onSubmit: () => void;
44};
45
46export function GooeyAI({
47 children,
48 value,
49 setValue,
50 isLoading,
51 onSubmit,
52}: GooeyAIProps) {
53 const [isExpanded, setIsExpanded] = useState(false);
54
55 const rootRef = useRef<HTMLDivElement>(null);
56
57 useEffect(() => {
58 if (!isExpanded) return;
59
60 function handleOutsideClick(e: MouseEvent) {
61 if (rootRef.current?.contains(e.target as Node)) return;
62 setIsExpanded(false);
63 }
64
65 document.addEventListener("pointerdown", handleOutsideClick);
66
67 return () =>
68 document.removeEventListener("pointerdown", handleOutsideClick);
69 }, [isExpanded]);
70
71 return (
72 <GooeyAIContext.Provider
73 value={{
74 value,
75 setValue,
76 isLoading,
77 onSubmit,
78 isExpanded,
79 setIsExpanded,
80 rootRef,
81 }}
82 >
83 <div
84 style={{
85 filter: "url(#gooey-AI)",
86 }}
87 className="flex flex-col justify-center space-y-2"
88 >
89 <GooeyFilter />
90
91 <div
92 ref={rootRef}
93 className="relative w-14 h-14 flex items-center justify-center"
94 >
95 {children}
96 </div>
97 </div>
98 </GooeyAIContext.Provider>
99 );
100}
101
102export function GooeyAIButton({ className }: { className?: string }) {
103 const { isExpanded, setIsExpanded } = useGooeyAI();
104
105 return (
106 <button
107 onClick={() => setIsExpanded(!isExpanded)}
108 className={cn(
109// … truncated

What it pulls in

npm packages

  • lucide-react
  • motion

Files it writes

  • registry/new-york/gooey-ai/GooeyAI.tsx

Facts

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

Go to the source

www.brainframeui.tech rithwiksagar/BrainFrame-UI on GitHub Raw registry item This item as JSON

More from Brainframe UI Registry

All 2 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
prompt-inputprompt-inputBrainframe UI 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