1. Basic Forms
  2. Input

Components

Tailwind CSS Input

A basic widget for getting the user input is a text field. Keyboard and mouse can be used for providing or changing data.

Attention needed

By default Preline UI uses Tailwind CSS Forms plugin. Don't forget to install it!

Basic usage

Example

Basic input example.

Placeholder

Basic input example with placeholder.

Sizes

Inputs stacked small to large sizes.

Shape

Pilled input

Use the .rounded-full utility class to make inputs circular.

Readonly

Add the readonly boolean attribute on an input to prevent modification of the input’s value.

Disabled

Disabled input.

Label

Basic input example with label.

Hidden label

<label> elements hidden using the .sr-only class

Helper text

Basic input example with helper text.

We'll never share your details.

Inline helper text

Basic input example with inline helper text.

We'll never share your details.

Corner hint

Basic input example with corner-hint.

Optional

Validation states

It provides valuable, actionable feedback to your users with HTML5 form validation.

Please enter a valid email address.

Looks good!