Toggle Sidebar B
AppearanceLight & dark mode D

Input

Single-line text field. Supports every native HTML input type (text, email, number, date, file). Pair it with Field to add a label, description, or error message.

Default

Standard single-line input bound with v-model.

Replay preview

Type variants

Every native HTML type is supported through the type attribute.

Replay preview

Field

Wrap Input in Field, use FieldLabel for the label, and FieldDescription for hint text.

Replay preview

We will send a confirmation to this address.

Field Group

Use FieldGroup to stack multiple Field blocks and build forms.

Replay preview

We will send updates to this address.

Disabled

Add the disabled attribute to Input; add data-disabled to Field to style the wrapper.

Replay preview

This field is currently disabled.

Invalid

Set data-invalid on Field, aria-invalid on Input, and use FieldError for the message.

Replay preview

File

Use type="file" to create a file input.

Replay preview

Select a picture to upload.

Inline

Use Field with orientation="horizontal" and pair with a Button for an inline search field.

Replay preview

Grid

Use a grid layout to place multiple inputs side by side.

Replay preview

Required

Use the required attribute to indicate required inputs.

Replay preview

This field must be filled out.

Badge

Use a Badge in the label to highlight or tag a field.

Replay preview

Input Group

Use InputGroup to place icons, text, or buttons inside the input.

Replay preview
https://

Button Group

Use ButtonGroup to attach a button to the input.

Replay preview

Form

A full form example composed from multiple inputs.

Replay preview

We will never share your email with anyone.

API Reference

Input

PropTypeDefaultDescription
modelValuestring | numberValue. Supports v-model.
defaultValuestring | numberStarting value when v-model is not used.
typestring"text"Native HTML input type.
classstringExtra classes, merged with cn().
EventDescription
update:modelValueFires on input. Enables v-model. Native input events also bubble through.