Forms and Inputs - Skeleton

Skeleton

  1. tailwind
  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. Ths plugin is required if you wish to make use of any utility classes provided on this page.

Plugin Doc

Install the @tailwindcss/forms package.

Terminal window
npm install -D @tailwindcss/forms

Implement the plugin using the @plugin directive immediately following the tailwindcss import.

@import 'tailwindcss';
@plugin '@tailwindcss/forms';
/* ...Skeleton config here... */

Browser Support

The display of native and semantic HTML form elements can vary between both operating systems and browsers. Skeleton does it’s best to adhere to progressive enhancement best practices. However, we advise you validate support for each element per your target audience.

Select

Checkboxes

Radio Groups

Other Inputs

Groups

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.

Note that cells and buttons support Preset utility classes.