button
Link button with an icon on the right
Link button with an icon on the right
Загрузка превью…
src/button/c-button-29.vue
<script setup lang="ts">
import { Button } from "@/components/ui/button"
</script>
<template>
<Button variant="link" class="group/link-button">
View Documentation
<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-arrow-up-right transition-transform group-hover/link-button:rotate-45"
>
<path d="M7 7h10v10" />
<path d="M7 17 17 7" />
</svg>
</Button>
</template>
Установка
npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-button-29.jsonЗависимости реестра
Источник: порт из ReUI (Keenthemes, MIT)