Components
Layouts

Input

Capture user data with various forms of text input.

Username This will be publicly displayed.

Longhand

Flux makes it easy to wrap your inputs in a field with label/description and error messages. If you need more control over the layout of these fields, you can assemble the individual field components.

Class targeting

Unlike other form components, Flux's input component is composed of two underlying elements: an input element and a wrapper div. The wrapper div is there to add padding where icons should go.

This is typically fine, however, if you need to pass classes into the input component and have them directly applied to the input element, you can do so using the class:input attribute instead of simply class:

Types

Use the browser's various input types for different situations: text, email, password, etc.

Email
Password
Date

File

Flux provides a special input component for file uploads. It's a simple wrapper around the native input[type="file"] element.

Logo
Attachments

Smaller

Use the size prop to make the input's height more compact.

Disabled

Prevent users from interacting with an input by disabling it.

Email

Readonly

Useful for locking an input during a form submission.

Public API key

Invalid

Signal to users that the contents of an input are invalid.

Input masking

Restrict the formatting of text content for unique cases by using Alpine's mask plugin

Icons

Append or prepend an icon to the inside of a form input.

Icon buttons

Append a button to the inside of an input to provide associated functionality.

Clearable, copyable, and viewable inputs

Flux provides three special input properties to configure common input button behaviors. clearable for clearing contents, copyable for copying contents, and viewable for toggling password visibility.

Keyboard hint

Hint to users what keyboard shortcuts they can use with this input.

⌘K

As a button

To render an input using a button element, pass "button" into the as prop.

With buttons

Attach buttons to the beginning or end of an input element.

Text prefixes and suffixes

Append text inside a form input.

https://
.brand.com

Input group labels

If you want to use an input group in a form field with a label, you will need to wrap the input group in a field component.

Website
https://
Copyright © 2025 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie