button

Button with an icon on the left

Button with an icon on the left

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

src/button/c-button-14.vue

<script setup lang="ts">
import { Button } from "@/components/ui/button"
</script>

<template>
  <Button>
    <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-cloud-download"
    >
      <path d="M12 13v8l-4-4" />
      <path d="m12 21 4-4" />
      <path d="M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284" />
    </svg>
    Download
  </Button>
</template>

Установка

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

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

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