Skip to content

Input

A simple input component with support for easy labels and placeholders.

You can set the input’s type to like you would normally. Here’s a password input to show you how that’s done:

You can disable the input altogether by using the disabled prop.

Inputs have full form support. You can use the isRequired and name attributes as needed.

The first one does what it says it does, while the latter sets the name attribute so you can access the input in, for example, the FormData returned by a submission. Here’s an example showing how to set both of them: