label

Label with optional indicator

Label with optional indicator

Загрузка превью…

src/label/c-label-6.vue

<script setup lang="ts">
import { Field } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
</script>

<template>
  <Field class="w-full max-w-xs">
    <Label for="label-optional">
      Phone number
      <span class="text-muted-foreground">(optional)</span>
    </Label>
    <Input id="label-optional" type="tel" placeholder="+1 (555) 000-0000" />
  </Field>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-label-6.json

Зависимости реестра

Источник: порт из ReUI (Keenthemes, MIT)