button
Outline like button with count
Outline like button with count
Загрузка превью…
src/button/c-button-37.vue
<script setup lang="ts">
import { Button } from "@/components/ui/button"
</script>
<template>
<Button class="pe-0">
<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"
aria-hidden="true"
class="lucide lucide-thumbs-up"
>
<path d="M7 10v12" />
<path d="M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" />
</svg>
Like
<span class="relative ms-1 px-3 text-xs font-medium opacity-80 before:absolute before:inset-0 before:left-0 before:w-px before:bg-[currentColor]/60">
456
</span>
</Button>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-button-37.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)