input

Input label with badge

Input label with badge

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

src/input/c-input-17.vue

<script setup lang="ts">
import { Badge } from "@/components/reui/badge"
import { Field, FieldLabel } from "@/components/ui/field"
import { Input } from "@/components/ui/input"
</script>

<template>
  <Field class="w-full max-w-xs">
    <div class="flex items-center gap-2">
      <FieldLabel for="api-key">API Key</FieldLabel>
      <Badge variant="success-light">New</Badge>
    </div>
    <Input id="api-key" placeholder="9f82a1c4b7e243d8a6c9f1e2a3b4c5d6" />
  </Field>
</template>

Установка

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

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

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