Docs
Label

Label

Renders an accessible label associated with controls.

Usage

vue
<script setup lang="ts">
import { Label } from "wedges-vue";
</script>

<template>
  <Label for="email">Your email address</Label>
</template>

API Reference

Props

PropTypeDefault
as
AsTag | Component
'div'
asChild
boolean
false
description
string
disabled
boolean
false
for
string
required
boolean
false
tooltip
string

Examples

The following example demonstrates using the Label component alongside a Label.Helper component with the error prop.

There are errors in your form.
Edit this page on GitHub