label

Label

Names a control that sits outside a Field, such as a sort select in a toolbar, and moves focus to it on click.

Parts

PartFileDoes
LabelLabel.vueLabels a form field and focuses it when the user clicks the label.

Styling

All of Label’s styles live in label.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@vueuse/core
reka-ui

API reference

Label.vue

Labels a form field and focuses it when the user clicks the label. Renders a <label>.

Props 4

PropTypeDefault
forstring—
asChildbooleanfalse
asAsTag | Component'label'
classClassValue—

Recipe label-root 2 groups

Label