Elements

Components

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.

#Basic usage

field/basic Vue React
Shown beside your published notes.

#Props

#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']—

#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']—

#Textarea

PropTypeDefaultDescription
autoresizebooleanfalseWhether the textarea should autoresize
modelValueTextareaHTMLAttributes['value']—