››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
| Part | File | Does |
|---|---|---|
| Label | Label.vue | Labels 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
Labels a form field and focuses it when the user clicks the label. Renders a <label>.
Props 4
| Prop | Type | Default | |
|---|---|---|---|
| for | string | — | |
| |||
| asChild | boolean | false | |
| |||
| as | AsTag | Component | 'label' | |
| |||
| class | ClassValue | — | |
| |||
Recipe label-root 2 groups
opacity opacity.500.5
Label