Skip to content

Button

Primary action button with variants, sizes, loading state, and width control.

Usage

vue
<script setup>
import { ArchButton } from "@archora/ui";
</script>

<template>
  <ArchButton variant="primary">Save</ArchButton>
  <ArchButton variant="secondary" shape="rounded">Preview</ArchButton>
  <ArchButton variant="danger" loading>Deleting</ArchButton>
</template>

Live sandbox

Button can be tested directly on this page.

interactive
<ArchButton variant="primary">Save</ArchButton>

Props

PropTypeDefaultDescription
variant"primary" | "secondary" | "ghost" | "danger" | "success" | "warning""primary"Visual variant.
size"sm" | "md" | "lg""md"Size.
shape"pill" | "rounded" | "square""pill"Corner shape.
justify"center" | "start" | "between""center"Content alignment.
type"button" | "submit" | "reset""button"HTML type or field type.
disabledbooleanfalseDisables the component.
loadingbooleanfalseShows the loading state.
blockbooleanfalseStretches the component to full width.

Events

EventPayloadDescription
clickevent: MouseEventComponent click.

Slots

SlotPropsDescription
default-Button content.