label

Label with badge indicator

Label with badge indicator

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

src/label/c-label-8.vue

<script setup lang="ts">
import { Badge } from "@/components/reui/badge"
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-badge" class="gap-2">
      Webhook URL
      <Badge variant="success-light" size="sm">
        Active
      </Badge>
    </Label>
    <Input
      id="label-badge"
      type="url"
      value="https://api.example.com/webhooks"
      class="font-mono text-xs"
    />
  </Field>
</template>

Установка

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

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

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