Skip to content

Icon Button

Accessible icon-only button with a required text label.

Usage

vue
<script setup>
import { Settings } from "lucide-vue-next";
import { ArchIconButton } from "@archora/ui";
</script>

<template>
  <ArchIconButton :icon="Settings" label="Settings" @click="openSettings" />
</template>

Live sandbox

Icon Button can be tested directly on this page.

interactive
<IconButton />

Props

PropTypeDefaultDescription
iconComponent-Vue icon component.
labelstring-Accessible label or text.
size"sm" | "md" | "lg""md"Size.
variant"ghost" | "secondary" | "primary" | "danger""ghost"Visual variant.
disabledbooleanfalseDisables the component.
type"button" | "submit" | "reset""button"HTML type or field type.

Events

EventPayloadDescription
clickevent: MouseEventComponent click.