Skip to content

Button

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

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

Installation

bash
npx kuro-ui add button
bash
npx github:Bartek-Nowak/Kuro add button

Variants and Sizes

The Button component supports several visual variants and sizes. Use the variant and size props to customize its appearance.

VariantDescription
defaultBlue background with white text (primary style)
destructiveRed background for destructive actions
outlineTransparent background with border
ghostTransparent background, subtle hover effect
linkStyled as a text link with underline
SizeDescription
smSmall button
mdMedium button (default)
lgLarge button

Usage Example

vue
<template>
  <div class="space-x-2">
    <Button variant="default" size="sm">Default Sm</Button>
    <Button variant="destructive" size="md">Destructive Md</Button>
    <Button variant="outline" size="lg">Outline Lg</Button>
    <Button variant="ghost">Ghost Default</Button>
    <Button variant="link">Link Default</Button>
  </div>
</template>