Forms

Tailwind CSS Input Group

The Tailwind CSS Input Group allows you to combine text, icons, input fields, and buttons into a unified and functional unit.

Default

An example of Tailwind CSS Input Group component with text addons.
Add on
Add on

Icon

Use KeenIcons to integrate icons into Tailwind CSS Input Group, providing an intuitive form experience.

Buttons

Incorporate the Tailwind CSS Button within the Tailwind CSS Input Group to enable actions.
Button
Button
Integrate the Tailwind CSS Dropdown within the Tailwind CSS Input Group to enable a dropdown menu with actions.

Multiple Addons

An example of Tailwind CSS Input Group component with multiple text addons.
Add on Add on

Multiple Buttons

An example of Tailwind CSS Input Group component with multiple buttons.
Button Button

Multiple Inputs

An example of Tailwind CSS Input Group component with multiple inputs.

Sizes

To change Tailwind CSS Input Group size, use the classes .input-sm , .input-lg , .btn-sm and .btn-lg respectively.

Source Code

The following source file manages the CSS styles of the Tailwind CSS Input Group component. Upon building the assets using Webpack Build Tools , the below file is compiled and added into the dist/assets/css/styles.css bundle, making it available globally across all pages.
File Description
src/core/plugins/components/input-group.js The Tailwind CSS compatible plugin written in PostCSS for applying CSS styles to the Tailwind CSS Input Group component.