Component
Mention Input
Mention input components with user suggestions and tag styles
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.site/library/tailwind/components/input/mention-input/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Input/mention-input Tailwind/Components/Input/mention-input <!-- Mention Input - Standard -->
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Tag someone</label>
<input type="text" placeholder="@username" class="w-full px-4 py-3 bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors" />
<p class="mt-2 text-sm text-gray-500">Type @ to mention someone</p>
</div>
<!-- Mention Input - Tag Style -->
<div class="mt-4">
<label class="block text-sm font-medium text-gray-700 mb-2">Notify team members</label>
<div class="p-3 bg-white border border-gray-300 rounded-lg focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition-colors">
<div class="flex flex-wrap gap-2 mb-2">
<span class="px-2 py-1 bg-blue-100 text-blue-700 text-sm rounded flex items-center gap-1">
<span>@</span>johndoe
<button class="hover:text-blue-900">×</button>
</span>
<span class="px-2 py-1 bg-purple-100 text-purple-700 text-sm rounded flex items-center gap-1">
<span>@</span>alicesmith
<button class="hover:text-purple-900">×</button>
</span>
</div>
<input type="text" placeholder="Add more mentions..." class="w-full bg-transparent border-0 focus:outline-none text-sm" />
</div>
</div>
<!-- Mention Input - Dark -->
<div class="mt-4 p-4 bg-slate-900 rounded-xl">
<label class="block text-sm font-medium text-gray-300 mb-2">Share with</label>
<input type="text" placeholder="@search users" class="w-full px-4 py-3 bg-slate-800 border border-slate-600 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:border-blue-400 transition-colors" />
</div> # Mention Input
Input with @mention support UI.
## Usage
```bash
npx devsnips add Tailwind/Components/Input/mention-input
```
Copy from `code.html`.
## File Structure
`code.html` · `preview.html` · `metadata.json` · `README.md` 30 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf
Agent skill & Model Context Protocol
Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.
devsnips://components/input/mention-input I want to use this DevSnips resource in production: Page: https://devsnips.site/library/tailwind/components/input/mention-input/ Install: npx devsnips add Tailwind/Components/Input/mention-input This is the Mention Input — Mention input components with user suggestions and tag styles Use this DevSnips resource as the starting point for my project. Adapt it to my project's stack and conventions, fix any issues, and make it production-ready while preserving its intended design and behavior.
Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.
Resource URI
devsnips://components/input/mention-input