input

Input with required indicator

Input with required indicator

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

src/input/c-input-13.vue

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

<template>
  <Field class="max-w-xs">
    <FieldLabel for="company">
      Company <span class="text-destructive">*</span>
    </FieldLabel>
    <Input id="company" placeholder="Wotso Inc." />
  </Field>
</template>

Установка

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

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

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