Skip to content

TextButtonWithIcon

A text button that includes an icon, either to the left or right of the label.

Usage

vue
<script setup>
import { TextButtonWithIcon, Icons } from "fluekit";
</script>

<template>
  <TextButtonWithIcon :icon="Icons.add" label="Add Item" />
</template>

Examples

Interactive Demo

Basic

Icon Position

Disabled

Props

PropTypeDefaultDescription
iconstring | ComponentRequiredThe icon to display.
labelstringundefinedThe text label.
iconPosition'left' | 'right''left'Position of the icon relative to the text.
iconSizenumber24Size of the icon in pixels.
iconColorstring | ColorundefinedColor of the icon. Defaults to button foreground color.
disabledbooleanfalseWhether the button is disabled.
paddingEdgeInsetsvertical: 8, horizontal: 16Padding around the content.
styleButtonStyleundefinedCustom button style overrides.
textStyleTextStyleundefinedCustom text style overrides.

Events

EventPayloadDescription
pressed-Emitted when the button is tapped/clicked.
long-press-Emitted when the button is long pressed.