Skip to content

IconButton

A customizable icon button component with various styles and states.

  • Import
    import "@tapsioss/web-components/button/icon-button";
  • Tag
    <tapsi-icon-button></tapsi-icon-button>

Properties

NameDescriptionTypeDefault Value
disabledWhether the button is disabled.booleanfalse
typeThe type of the button."button" | "submit" | "reset"-
labelThe accessible label for the button.string-
loadingWhether the button is in a loading state.booleanfalse
sizeThe size of the button."sm" | "md" | "lg""md"
variantThe variant style of the button."primary" | "ghost" | "naked" | "elevated" | "destructive" | "brand""primary"

Slots

NameDescription
-Icon button's content.

TIP

You can use slot names as variables:

ts
import { Slots } from "@tapsioss/web-components/button/icon-button";

console.log(Slots.DEFAULT); // ""