
Inputs · €7
Bot login
A sign-in form with the Bot: it reads your email and looks away from your password.
Pay once on Gumroad: the download, plus a licence key for the registry and the MCP server.
Details
- Category
- Inputs
- Plan
- Paid, €7 once
- Code
- React + Tailwind, TypeScript · 239 lines
- Files
- BotLogin.tsx
- Needs
- The Bot (installed with it)
- Agents
- MCP server and shadcn registry
About
A sign-in card with the Bot. It follows your cursor, reads along as you type your email (looking at the exact spot you're typing), turns away while you type the password and peeks if you show it. While it checks, it glances side to side; it smiles when you're in and shakes its head when the password is wrong. White and black versions. React + Tailwind, no other libraries. Respects reduced motion.
Install
Once: add the StackD registry to components.json, with the licence key from your receipt in STACKD_LICENSE_KEY (in .env.local):
"registries": {
"@stackd": {
"url": "https://www.stackd.codes/r/{name}.json",
"headers": { "X-License-Key": "${STACKD_LICENSE_KEY}" }
}
}With the shadcn CLI:
npx shadcn@latest add @stackd/bot-loginOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD Bot login component to this project. Use the StackD MCP server: call get_component with { "name": "bot-login" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles. It is a paid component: if the server says it needs a licence, tell me where to buy it.Use
- Copy
BotLogin.tsxandBot.tsxinto the same folder (for examplecomponents/). - Use it:
import { BotLogin } from './components/BotLogin'
<BotLogin
onSubmit={async (email, password) => {
const res = await fetch('/api/login', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password }),
})
return res.ok
}}
/>
onSubmit returns true (or a promise of true) when the sign-in worked: the Bot smiles and the card says "You're in". Return false and it shakes its head and shows the error.
Without onSubmit, the demo accepts the password stackd.
In Next.js the files already start with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
onSubmit | demo | (email, password) => boolean | Promise<boolean> |
theme | 'light' | 'light' (white card) or 'dark' (black card) |
bot | pill, tall eyes | { shape, eyes } from the Bot (Kit 01) |
title | 'Welcome back' | The heading |
subtitle | 'Sign in to continue' | The line under it |
compact | false | Smaller Bot and no heading, for tight spaces |
Notes
- The fields use
autoComplete="email"and"current-password", so password managers fill them. - The error is announced to screen readers, and the show/hide button says what it does.
Colours from StackD
White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF
Licence
You can use it in personal and commercial projects. Don't resell or share the component on its own.
Made by StackD · stackd.codes




