dqnamo

Agent Dock

AI chats 590

About

A compact control surface for switching between voice, chat, and lightweight agent states without pulling focus from the current screen. The dark dock shows an agent avatar, name, and an animated status line, with Voice and Chat actions (keyboard hints). Clicking Chat expands an inline composer that springs open; submitting a message flips the status to a working state. Built with motion/react, it animates height and status crossfades and respects reduced-motion preferences.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Agent Dock to your project and fits it to your theme.

Code

How Agent Dock is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { AgentDock } from "@/components/ui/agent-dock";

const avatarSrc =
  "https://cdn.21st.dev/assets/mirror/0e/0eb56130c1d872f702d99f0e4449feee3bad82c30ab14db063ace0927ae5a038.svg";

export default function Default() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-white p-8">
      <AgentDock
        agentName="Zara"
        avatarSrc={avatarSrc}
        className="w-full max-w-md"
        idleStatus="Your hyperaide"
        onMessageSubmit={async () => {
          await new Promise((resolve) => setTimeout(resolve, 1200));
        }}
        workingStatus="doing stuff..."
      />
    </div>
  );
}

Dependencies

More by dqnamo

View all
  • Animated Banner

    Animated Banner

    374
  • Scroll Fade List

    Scroll Fade List

    306
  • Model Selector Prompt

    Model Selector Prompt

    176
  • Game of Life Loader

    Game of Life Loader

    144
  • Animated Signature

    Animated Signature

    70
  • Iridescent Foil

    Iridescent Foil

    61
  • Dynamic Button

    Dynamic Button

    53
  • Scramble Text

    Scramble Text

    41

More in AI chats

View all
  • AI Actions

    AI Actions

    372
  • Agent Chat

    Agent Chat

    21
  • Aquarium Prompt

    Aquarium Prompt

    212
  • Illos Knowledge Sources

    Illos Knowledge Sources

    71
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • AI Chat Composer

    AI Chat Composer

    17
  • AI Response

    AI Response

    16
  • Thumbs pour

    Thumbs pour