Component

Outlined Input

Classic bordered input fields with focus ring effects and multiple sizes

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/components/input/outlined/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Input/outlined
registry path: Tailwind/Components/Input/outlined

Source

Implementation

code.html
<!-- Outlined Input - Default -->
<div class="relative">
  <label class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
  <input type="text" placeholder="Enter your name" class="w-full px-4 py-2.5 bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors" />
</div>

<!-- Outlined Input - Small -->
<div class="relative mt-4">
  <label class="block text-sm font-medium text-gray-700 mb-1">Small Input</label>
  <input type="text" placeholder="Small size" class="w-full px-3 py-1.5 bg-white border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors" />
</div>

<!-- Outlined Input - Large -->
<div class="relative mt-4">
  <label class="block text-sm font-medium text-gray-700 mb-1">Large Input</label>
  <input type="text" placeholder="Large size" class="w-full px-5 py-3.5 bg-white border border-gray-300 rounded-lg text-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors" />
</div>

<!-- Outlined Input - Filled -->
<div class="relative mt-4">
  <label class="block text-sm font-medium text-gray-700 mb-1">Pre-filled Input</label>
  <input type="text" value="Jane Smith" class="w-full px-4 py-2.5 bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors" />
</div>
23 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/input/outlined

Continue browsing

View all