Filter by title

Buttons

Introduction

abp-button is the main element to create buttons.

Basic usage:

<abp-button button-type="Primary">Click Me</abp-button>

Demo

See the buttons demo page to see it in action.

Attributes

button-type

A value indicates the main style/type of the button. Should be one of the following values:

  • Default (default value)
  • Primary
  • Secondary
  • Success
  • Danger
  • Warning
  • Info
  • Light
  • Dark
  • Outline_Primary
  • Outline_Secondary
  • Outline_Success
  • Outline_Danger
  • Outline_Warning
  • Outline_Info
  • Outline_Light
  • Outline_Dark
  • Link

size

A value indicates the size of the button. Should be one of the following values:

  • Default (default value)
  • Small
  • Medium
  • Large
  • Block
  • Block_Small
  • Block_Medium
  • Block_Large

busy-text

A text that is shown when the button is busy.

To be able to make the button busy:

$('#btnTest').buttonBusy(true);

To make it usable again:

$('#btnTest').buttonBusy(false);

text

The text of the button. This is a shortcut if you simply want to set a text to the button. Example:

<abp-button button-type="Primary" text="Click Me" />

In this case, you can use a self-closing tag to make it shorter.

icon

Used to set an icon for the button. It works with the Font Awesome icon classes by default. Example:

<abp-button icon="address-card" text="Address" />
icon-type

If you don't want to use font-awesome, you have two options:

  1. Set icon-type to Other and write the CSS class of the font icon you're using.
  2. If you don't use a font icon use the opening and closing tags manually and write any code inside the tags.

disabled

Set true to make the button initially disabled.

Contributors


Last updated: October 14, 2025 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

ABP Community Talks
AI-Powered .NET Apps with ABP & Microsoft Agent Framework
18 Dec, 17:00
Online
Register Now
ABP Live Webinar
Webinar Calendar Webinar Calendar
Discover
ABP Platform
Register Now
Dec 17
Wednesday,
17:00 UTC
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.