Skip to content
OwnlyPlans

Element

AI Prompt Box (Dark Glass)

A sleek dark prompt box for AI apps: glowing hairline frame, auto-growing input, tool buttons, a metallic send button with a flying paper plane, and suggestion chips.

Remix

Preview and code

Markdown
AI interfaces

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/ai-prompt-box-dark-glass.json

Adds the React files to components/ownlyplans/ in a project set up with shadcn and Tailwind CSS. Or copy them from the Code tab.

About

The message box for your chatbot, copilot or image generator, in a dark glass style. A hairline frame catches the light in the corner and brightens when you type, the input grows with the text, Enter sends and Shift+Enter adds a line, and the metallic send button only lights up when there is something to send. Press it and the paper plane flies off while the message lands in a small thread above.

Tool buttons for attaching a file and adding an image (wire them to your own picker), a web-search toggle with aria-pressed, a character counter, and suggestion chips that start a prompt for you. Everything works with the keyboard and screen readers.

Listen for the “ask:submit” event (detail.text and detail.tools) to send the prompt to your AI. In the React version pass onSubmit(text, tools), onTool, your own suggestions and maxLength.

MIT License

Copyright (c) 2026 OwnlyPlans

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Your AI tool
Starter prompt

		

Download the plan