input

Input with description

Input with description

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

src/input/c-input-3.vue

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

<template>
  <Field class="max-w-xs">
    <FieldLabel for="input-demo-username">Username</FieldLabel>
    <Input id="input-demo-username" type="text" placeholder="Enter your username" />
    <FieldDescription>Choose a unique username for your account.</FieldDescription>
  </Field>
</template>

Установка

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

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

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