Angular PrimeNG Button Icons Component Last Updated : 08 Aug, 2022 Comments Improve Suggest changes Like Article Like Report Angular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will be see the Button Icons Component in Angular PrimeNG. A Button Component is used for carrying out some action when clicked. The icon for a button can be specified using the icon property and its position can be altered using the iconPos property of the button. The button text may or may not be present for an icon button. The only icon in the button can also be displayed by specifying its value as undefined. The default value of the icon position is left. Angular PrimeNG Button Icons Component Properties: icon: This property is used to specify an icon for the button.iconPos: This property is used to set the position of the icon in and button if the text is present. It accepts two values: "left" and "right".Syntax: <button pButton type="button" icon="pi pi-check" label="Button with Icon"> </button>Creating Angular Application and Installing the Module: Step 1: Create an Angular application using the following command. ng new appnameStep 2: After creating your project folder i.e. appname, move to it using the following command. cd appnameStep 3: Finally, Install PrimeNG in your given directory. npm install primeng --save npm install primeicons --saveProject Structure: The project Structure will look like this after following the above steps: Project StructureExample 1: This example illustrates the use of the icon property of the button to set the icon. Here, we used the pi-check and pi-hashtag icons with the button. app.component.html <div class="header"> <h2>GeeksforGeeks</h2> <h3> Angular PrimeNG Button Icons Component </h3> </div> <div class="buttons"> <button pButton type="button" label="Button with No Icon"> </button> <button pButton type="button" icon="pi pi-check" label="Button with Icon"> </button> <button pButton type="button" icon="pi pi-hashtag"> </button> </div> app.component.css div { display: flex; align-items: center; justify-content: center; flex-direction: column; } .header h2 { margin-bottom: 0; color: green; } button { margin-bottom: 10px; } app.component.ts import { Component } from "@angular/core"; @Component({ selector: "my-app", templateUrl: "./app.component.html", styleUrls: ["./app.component.css"], }) export class AppComponent {} app.module.ts import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { ButtonModule } from "primeng/button"; @NgModule({ imports: [BrowserModule, BrowserAnimationsModule, ButtonModule], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule {} Run the below command:ng serve --open Output:  Example 2: In this example, we used the iconPos property along with the icon property to set the position of the icon. app.component.html <div class="header"> <h2>GeeksforGeeks</h2> <h3> Angular PrimeNG Button Icons Component </h3> </div> <div class="buttons"> <button pButton type="button" label="Button with No Icon"> </button> <button pButton type="button" icon="pi pi-check" iconPos="left" label="Button with Left Icon"> </button> <button pButton type="button" icon="pi pi-check" iconPos="right" label="Button with Right Icon"> </button> </div> app.component.css div { display: flex; align-items: center; justify-content: center; flex-direction: column; } .header h2 { margin-bottom: 0; color: green; } button { margin-bottom: 10px; } app.component.ts import { Component } from "@angular/core"; @Component({ selector: "my-app", templateUrl: "./app.component.html", styleUrls: ["./app.component.css"], }) export class AppComponent {} app.module.ts import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { ButtonModule } from "primeng/button"; @NgModule({ imports: [BrowserModule, BrowserAnimationsModule, ButtonModule], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule {} Output:  Reference: http://primefaces.org/primeng/button Comment More infoAdvertise with us Next Article Angular PrimeNG Button Severities Component vpsop Follow Improve Article Tags : Web Technologies AngularJS Angular-PrimeNG PrimeNG-Form Similar Reads Button ComponentAngular PrimeNG Button Basic ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will see Angular PrimeNG Button Basic Component. A Button component is used for carrying out some action when clicked 3 min read Angular PrimeNG Button Icons ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will be see the Button Icons Component in Angular PrimeNG. A Button Component is used for carrying out some action wh 3 min read Angular PrimeNG Button Severities ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see the Button Severities Component in Angular PrimeNG. A Button is general 3 min read Angular PrimeNG Button Raised Buttons ComponentAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will see Angular PrimeNG Button Raised Buttons Component. A Button component is used for carrying 3 min read Angular PrimeNG Button Rounded Buttons ComponentAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG Button Rounded Buttons Component. A Button component 3 min read Angular PrimeNG Button Text Buttons ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will be seeing Angular PrimeNG Button Text Buttons Component. A Button component is used for carrying out some action 3 min read Angular PrimeNG Button LabelAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will be seeing Angular PrimeNG Button Label. A Button component is used for carrying out some ac 3 min read Angular PrimeNG Button EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to style the Tooltip component in Angular PrimeNG. A Button is general 4 min read Angular PrimeNG Button Severity ComponentAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG Button Severity Component. A Button component is used 3 min read Angular PrimeNG Button Text Buttons ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will be seeing Angular PrimeNG Button Text Buttons Component. A Button component is used for carrying out some action 3 min read Angular PrimeNG Button Outlined Buttons ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will see Angular PrimeNG Button Outlined Buttons Component. A Button component is used for carrying out some action w 3 min read Angular PrimeNG Button Link Buttons ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will see Angular PrimeNG Button Link Buttons Component. A Button component is used for carrying out some action when 3 min read Angular PrimeNG Button Badges ComponentAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG Button Badges Component. A Button component is used f 3 min read Angular PrimeNG Button ButtonSet ComponentAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see Angular PrimeNG Button ButtonSet Component. A Button Component is used to p 3 min read Angular PrimeNG Button SizesAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see Angular PrimeNG Button Sizes. A Button is generally used for carrying out s 3 min read Angular PrimeNG Button Loading State ComponentAngular PrimeNG is an open-source front-end UI library that has many native Angular UI components which help developers to build a fast and scalable web solution. In this article, we will be seeing Angular PrimeNG Button Loading State Component. A Button component is used for carrying out some actio 3 min read Angular PrimeNG Button Properties of pButtonAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to style the Tooltip component in Angular PrimeNG. A Button is general 4 min read Angular PrimeNG Button Properties of p-buttonAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to style the Tooltip component in Angular PrimeNG. A Button is general 5 min read Angular PrimeNG Button TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to style the Tooltip component in Angular PrimeNG. A Button is general 3 min read Angular PrimeNG Button StylingAngular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will be seeing the Button Styling in Angular PrimeNG. The Button component in PrimeNG is used to 3 min read SplitButton ComponentAngular PrimeNG SplitButton Animation ConfigurationAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will see how to use the SplitButton Animation Configuration Component in Angular PrimeNG. The SplitButton Componen 3 min read Angular PrimeNG MenuModel API MenuItemAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use Angular PrimeNG MenuModel API MenuItem. MenuModel API: Prime 3 min read Angular PrimeNG SplitButton EventsAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will see how to use SplitButton Events in angular primeNG. The SplitButton component is used to make a button a dro 3 min read Angular PrimeNG SplitButton SeverityAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG SplitButton Severity. The SplitButton component combi 4 min read Angular PrimeNG SplitButton Raised and Rounded Buttons ComponentAngular PrimeNG is a framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will see the SplitButton Raised and Rounded Component in Angular PrimeNG. The SplitButton component is used to 3 min read Angular PrimeNG SplitButton StylingAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will see Angular PrimeNG SplitButton Styling. The SplitButton component is used to make a button a dropdown. This c 3 min read Speed Dial ComponentAngular PrimeNG Speed Dial TypeAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be discussing Angular PrimeNG Speed Dial Type. The Speed Dial component display 4 min read Angular PrimeNG Speed Dial LinearAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the SpeedDial Linear Component in Angular PrimeNG. We will 4 min read Angular PrimeNG Speed Dial Circle, Semi-Circle and Quarter-CircleAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Speed Dial Circle, Semi-Circle, and Quarter-Circle Com 4 min read Angular PrimeNG Speed Dial Tooltip ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the SpeedDial Tooltip Component in Angular PrimeNG. We wil 4 min read Angular PrimeNG Speed Dial Transition Duration, Icon and No Rotate AnimationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the SpeedDial Transition Duration, Icon and No Rotate Anim 4 min read Angular PrimeNG Speed Dial MaskAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the SpeedDial Mask Component in Angular PrimeNG. We will a 4 min read Angular PrimeNG Speed Dial DirectionAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the SpeedDial Direction Component in Angular PrimeNG. We w 4 min read Angular PrimeNG Speed Dial PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the SpeedDial Properties in Angular PrimeNG. The SpeedDial C 5 min read Angular PrimeNG Speed Dial TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Angular PrimeNG Speed Dial Templates. The SpeedDial Component i 3 min read Angular PrimeNG Speed Dial EventsAngular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG Speed Dial Events. The Speed Dial component displays 4 min read Angular PrimeNG Speed Dial StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Angular PrimeNG Speed Dial Styling. The SpeedDial Component is 3 min read Like