Button

Displays a button or a component that looks like a button.

Installation

bash
npx shadcn-vue@latest add button

Usage

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

<template>
  <Button>Button</Button>
</template>

Examples

Primary

Secondary

Destructive

Outline

Ghost

Icon

With Icon

Loading

As Child

Edit this page on GitHub