button
Ghost button with an icon on the right
Ghost button with an icon on the right
Загрузка превью…
src/button/c-button-21.vue
<script setup lang="ts">
import { Button } from "@/components/ui/button"
</script>
<template>
<Button variant="ghost">
Logout
<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-log-out"
>
<path d="m16 17 5-5-5-5" />
<path d="M21 12H9" />
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
</svg>
</Button>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-button-21.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)