input-group
Input group with success indicator circle
Input group with success indicator circle
Загрузка превью…
src/input-group/c-input-group-24.vue
<!--
Расхождение с апстримом: `IconPlaceholder` заменена инлайновым `<svg>`
(lucide-react v0.545.0 "check") — см. docs/PORTING.md §5.
-->
<script setup lang="ts">
import { Field } from "@/components/ui/field"
import { InputGroup, InputGroupAddon, InputGroupInput } from "@/components/ui/input-group"
</script>
<template>
<Field class="max-w-xs">
<InputGroup>
<InputGroupInput value="reui_dev" />
<InputGroupAddon align="inline-end">
<div class="flex size-4 items-center justify-center rounded-full bg-emerald-500">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-check size-3 text-white"
>
<path d="M20 6 9 17l-5-5" />
</svg>
</div>
</InputGroupAddon>
</InputGroup>
</Field>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-input-group-24.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)