Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS Search Input</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 flex items-center justify-center min-h-screen p-6 antialiased"> <div class="w-full max-w-lg"> <div class="relative group"> <div class="absolute left-6 top-1/2 -translate-y-1/2 h-5 w-5 text-slate-400 group-focus-within:text-indigo-600 group-focus-within:scale-110 transition-all"> <svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg> </div> <input type="search" placeholder="Query the database..." class="w-full h-18 bg-white border-2 border-slate-100 rounded-[2rem] pl-16 pr-24 font-bold text-slate-900 placeholder-slate-400 focus:outline-none focus:border-indigo-600 focus:shadow-2xl transition-all" > <div class="absolute right-4 top-1/2 -translate-y-1/2 flex items-center gap-2"> <span class="text-[10px] font-black text-slate-300 uppercase tracking-widest border border-slate-100 rounded-lg px-2 py-1 bg-slate-50">⌘K</span> </div> </div> </div> </body> </html>