Component
Outlined Input
Classic bordered input fields with focus ring effects and multiple sizes
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/input/outlined/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Input/outlined Tailwind/Components/Input/outlined <!-- 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> # Outlined Input
Outlined text input.
## Usage
```bash
npx devsnips add Tailwind/Components/Input/outlined
```
Copy from `code.html`.
## File Structure
`code.html` · `preview.html` · `metadata.json` · `README.md` 23 lines UTF-8 · LF · Spaces: 2
Continue browsing