Skip to content

Input

The Input component is a fundamental form control used to receive text, numbers, emails, passwords, and other data from the user.

Add the Input component to your project using the OrbitUI CLI:

Terminal window
npx orbitkit@latest add input

Import the Input component and use it in your forms or interactive elements. You’ll typically use standard HTML input attributes like type, id, name, placeholder, and required. It’s also highly recommended to pair an input with a <label> element for accessibility.

The Input component accepts all standard HTML attributes for an <input> element, plus the following props based on inputVariants:

PropTypeDefault
variantdefaultdefault
disabledbooleanfalse