Forms

Input Group

Input Group

An element resembling a form input field for displaying or entering data group with other controls or accents.

Input with label


Input with label and help text

This text helps you, right?


Input with dynamic error messages

JavaScript or Turbo required.

Add the class .form-input-error dynamically to display an invalid state. The icon and helper text is hidden by default but is displayed when the class gets appended.

Read the Icon documentation for the icon view helper as shown in the following snippet(s).


Input with browser-based error messages

Most modern browsers have invalid properties and states you can customize the design for. This type of validation uses those in lieu of reaching for JavaScript.


Disabled input with label

Adding a disabled attribute to the input field will automatically style disabled inputs


Input with add-on

Using custom offsets you can add an add-on to the beginning or end of an input. Modify the w-[40px] class of the add-on to account for its content. Do the same for the input padding pl-[90px] to adjust offset proportionally.

https://

Input with leading inline and trailing add-ons

$ USD

Input with add-on and trailing button