Skip to content
SevenUI
Sign inGet Pro
On this page

Input

Displays a text input built on the Base UI Input primitive, for text, email, password, file, and other native input types.

Displays a text input built on the UI SDK Input component, for text, email, password, file, and other native input types.

Installation

Usage

Examples

File

Required

Disabled

Invalid

The URL can't contain spaces.

API reference

The UI SDK flavour is built on UI SDK Input. Its API is the SevenUI wrapper's, the same in both flavours: export names, props, data-slot values and the render prop, so code that uses only the SevenUI exports compiles against either flavour. Nothing a reader would notice behaves differently. Switch to Base UI to read the prop tables, which describe that shared API in Base UI's terms.

Input

Extends the Base UI Input primitive — all native input props apply.

PropTypeDefault
type"text" | "email" | "file" | "password" | …"text"
disabledbooleanfalse
requiredbooleanfalse
aria-invalidboolean — destructive border and ring—

Inside a Field, invalid state is wired automatically.

Was this page helpful?