1. tailwind components
  2. forms

Forms and Inputs

Various form and input styles.

Prerequisites

Tailwind Forms

Skeleton relies on the official Tailwind Forms plugin to normalize form styling. This plugin is required if you wish to use any form utility classes provided on this page.

View on Github

To being, install the @tailwindcss/forms package.

sh
npm install -D @tailwindcss/forms

Then implement in your global stylesheet using the the @plugin directive.

css
@import 'tailwindcss';
@plugin '@tailwindcss/forms';

/* ...Skeleton config here... */

Browser Support

The quality and appearance of native and semantic HTML form elements can vary between both operating systems and browser vendors. Skeleton does its best to adhere to progressive enhancement best practices. However, we advise you validate support for each element per your target audience.

Inputs

Supports all input types , within reason.

Select

Checkboxes

Radio Groups

Kitchen Sink

Display and functionality of these elements may vary greatly between devices and browsers.

Groups

Input groups support a subset of form elements and button styles. These pair well with Presets .

https://
ClassUsage
input-groupDefines the parent input group set.
ig-cellDefines a child cell for text or icons.
ig-inputDefines a child input of type="text".
ig-selectDefines a child select element.
ig-btnDefines a child button.
View page on GitHub