Elements

Reference

Field

Field, dressed in the paper-and-ink system: a tracked label, a border-and-halo control, and quiet help text. The parts — Root, Label, Input, Textarea, Select, HelperText, ErrorText, RequiredIndicator.

#ErrorText

A styled part — no props of its own; it takes the anatomy's shared styling.

#HelperText

A styled part — no props of its own; it takes the anatomy's shared styling.

#Input

PropTypeDefaultDescription
modelValueInputHTMLAttributes['value']—
EventPayload
update:modelValue...args: any[]

#Item

PropTypeDefaultDescription
valuestring—

#Label

A styled part — no props of its own; it takes the anatomy's shared styling.

#RequiredIndicator

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
disabledbooleanIndicates whether the field is disabled.
idstringThe id of the field.
idsElementIdsThe ids of the field parts.
invalidbooleanIndicates whether the field is invalid.
readOnlybooleanIndicates whether the field is read-only.
requiredbooleanIndicates whether the field is required.
targetstringThe target field item value the label should point to.

#Select

PropTypeDefaultDescription
modelValueSelectHTMLAttributes['value']—
EventPayload
update:modelValue...args: any[]

#Textarea

PropTypeDefaultDescription
autoresizebooleanfalseWhether the textarea should autoresize
modelValueTextareaHTMLAttributes['value']—
EventPayload
update:modelValue...args: any[]