File: input-groups.md | Updated: 11/15/2025
5-day Mini-Course
Short, tactical video lessons from the creator of Tailwind CSS, delivered directly to your inbox every day for a week.
Use these Tailwind CSS input group components to create things like search bars with buttons, credit card forms, and other form inputs with combined input and label elements. These components are designed and built by the Tailwind CSS team, and include a variety of different styles and layouts.
Input with inline leading add-on and trailing dropdown
PreviewCode
HTMLReactVue
Input with inline leading add-on and trailing dropdown
PreviewCode
HTMLReactVue
Preview
Preview
Input with label and help text
Preview
Input with label and help text
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Preview
Input with inline leading and trailing add-ons
Preview
Input with inline leading and trailing add-ons
Preview
Input with inline leading dropdown
Preview
Input with inline leading dropdown
Preview
Input with leading icon and trailing button
Preview
Input with leading icon and trailing button
Preview
Preview
Preview
Preview
Preview
Inputs with inset labels and shared borders
Preview
Inputs with inset labels and shared borders
Preview
Preview
Preview
Preview
Preview
Input with gray background and bottom border
Preview
Input with gray background and bottom border
Preview
Preview
Preview