Angular PrimeNG Card Component Last Updated : 11 Sep, 2021 Comments Improve Suggest changes Like Article Like Report Angular 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 know how to use the Card Component in Angular PrimeNG. We will also learn about the properties, styling along with their syntaxes that will be used in the code. Card Component: A card is used to display flexible and extensible content containers. Properties: header: It specifies the title of the card. It is of string data type & the default value is null.subheader: It specifies the secondary title of the card. It is of string data type & the default value is null.style: It is used to set the inline style of the component. It is of string data type & the default value is null.styleClass: It is used to set the style class of the component. It is of string data type & the default value is null.Styling: p-card: It is the container element.p-card-reader: It is the title element.p-card-subheader: It is the subtitle element.p-card-content: It is the content of the card.p-card-footer: It is the footer of the card. Creating Angular application & module installation: 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: Install PrimeNG in your given directory.npm install primeng --save npm install primeicons --saveProject Structure: It will look like the following: Example 1: This is the basic example that illustrates how to use the Card component. app.component.html <h2>GeeksforGeeks</h2> <p-card header="Angular PrimeNG Card component"> <p> Angular 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. </p> </p-card> app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) 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 { CardModule } from "primeng/card"; @NgModule({ imports: [BrowserModule, BrowserAnimationsModule, CardModule], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule {} Output: Example 2: In this example, we will know how to use the subheader property in the Card component. app.component.html <p-card header='GeeksforGeeks' subheader="Angular PrimeNG Card component"> <p> Angular 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. </p> </p-card> app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) 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 { CardModule } from 'primeng/card'; @NgModule({ imports: [BrowserModule, BrowserAnimationsModule, CardModule], declarations: [AppComponent], bootstrap: [AppComponent] }) export class AppModule {} Output: Reference: https://primefaces.org/primeng/showcase/#/card Comment More infoAdvertise with us Next Article Angular PrimeNG Divider Component taran910 Follow Improve Article Tags : Web Technologies AngularJS Angular-PrimeNG Similar Reads Angular PrimeNG Angular PrimeNG is a powerful open-source framework by PrimeTek Informatics, with pre-built, customizable UI components that accelerate development and elevate the user experience. By rich set of Angular UI components that are used to enhance web development by providing a complete library of ready- 5 min read Form ComponentAngular PrimeNG Form AutoComplete ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that helps to create an attractive user interface with enhanced functionality. These components can be utilized for great styling & are used to make responsive websites with very much ease. There are diff 12 min read Angular PrimeNG Calendar 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 know how to use the calendar component in angular ngx bootstrap. Calendar c 8 min read Angular PrimeNG Form CascadeSelect 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. This article will show us how to use the Angular PrimeNG Form CascadeSelect Component. The CascadeSe 6 min read Angular PrimeNG Form Checkbox 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. This article will show us how to use the calendar component in angular ngx bootstrap. Checkbox Compo 5 min read Angular PrimeNG Chips 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 know how to use the Chips component in Angular PrimeNG. Chips component: It 5 min read Angular PrimeNG ColorPicker 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 know how to use the colorPicker component in Angular PrimeNG. colorPicker c 4 min read Angular PrimeNG Dropdown 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 know how to use the Dropdown component in Angular ngx Bootstrap. We will al 9 min read Angular PrimeNG Form Editor 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 how to use the Form Editor Component in Angular PrimeNG. The Form Edito 3 min read Angular PrimeNG FloatLabel 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 know how to use the FloatLabel component in angular PrimeNG. FloatLabel com 2 min read Angular PrimeNG InputGroup 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 know how to use the InputGroup component in angular primeNG. InputGroup com 2 min read Angular PrimeNG InputMask 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 know how to use the InputMask component in angular primeNG. InputMask compo 4 min read Angular PrimeNG InputSwitch 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 know how to use the InputSwitch component in Angular PrimeNG. We will learn 3 min read Angular PrimeNG InputText 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 know how to use the InputText component in angular primeNG. Let's learn abo 3 min read Angular PrimeNG InputTextArea 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 know how to use the InputTextArea component in angular primeNG. InputTextAr 2 min read Angular PrimeNG InputNumber 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 know how to use the InputNumber component in Angular PrimeNG. We will also 7 min read Angular PrimeNG Knob 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 know how to use the Knob component in Angular PrimeNG. Knob component: It i 4 min read Angular PrimeNG KeyFilter 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 know how to use the KeyFilter component in angular primeNG. KeyFilter compo 2 min read Angular PrimeNG ListBox 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 know how to use the ListBox component in Angular PrimeNG. ListBox component 6 min read Angular PrimeNG Form MultiSelect 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 MultiSelect Component in Angular PrimeNG. The Multisel 9 min read Angular PrimeNG Password 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 know how to use the Password component in Angular PrimeNG. Password Compone 4 min read Angular PrimeNG RadioButton 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 know how to use the RadioButton component in Angular PrimeNG. RadioButton c 4 min read Angular PrimeNG Rating 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 know how to use the Rating component in Angular PrimeNG. Letâs learn about 4 min read Angular PrimeNG SelectButton 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 know how to use the SelectButton component in Angular PrimeNG. SelectButton 4 min read Angular PrimeNG Slider 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 know how to use the slider component in Angular PrimeNG. Properties: animat 4 min read Angular PrimeNG Form TreeSelect 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 the Angular PrimeNG Form TreeSelect Component. The TreeSelect Compone 8 min read Angular PrimeNG Form TriStateCheckbox 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. In this article, we will learn about TriStateCheckbox Events in Angular PrimeNG. The TriCheckbox Com 3 min read Angular PrimeNG Form ToggleButton EventsAngular PrimeNG is a collection of Interactive UI components for Angular applications. Developers can use these components to make beautiful and responsive web interfaces in no time as most of the components have all the necessary functions implemented. In this article, we will be discussing Angular 3 min read Button ComponentAngular PrimeNG Button 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 know how to use the Button Component in Angular PrimeNG. We will also lear 5 min read Angular PrimeNG SplitButton 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 how to use SplitButton component in angular primeNG. The SplitButton component is used to make a butto 3 min read Angular PrimeNG Speed DialAngular 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 Component in Angular PrimeNG. The SpeedDial co 4 min read Data ComponentAngular PrimeNG DataView 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 know how to use the dataView component in Angular PrimeNG. We will also lea 7 min read Angular PrimeNG OrderList 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 know how to use the OrderList component in Angular PrimeNG. We will also le 4 min read Angular PrimeNG OrganizationChart 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Paginator 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 know how to use the Paginator component in Angular PrimeNG. We will also le 5 min read Angular PrimeNG PickList 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 5 min read Angular PrimeNG Table 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 10 min read Angular PrimeNG TimeLine 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 know how to use the TimeLine Component in Angular PrimeNG. We will also lea 4 min read Angular PrimeNG Tree 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 6 min read Angular PrimeNG TreeTable 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 7 min read Panel ComponentAngular PrimeNG Accordion 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 know how to use the Accordion Component in Angular PrimeNG. We will also le 5 min read Angular PrimeNG Card 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 know how to use the Card Component in Angular PrimeNG. We will also learn a 3 min read Angular PrimeNG Divider 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 know how to use the Divider component in Angular PrimeNG. We will also lear 4 min read Angular PrimeNG Fieldset RegularAngular 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 use the Fieldset Regular in Angular PrimeNG. We will also learn abo 3 min read Angular PrimeNG Panel 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 know how to use the Panel component in Angular PrimeNG. We will also learn 4 min read Angular PrimeNG Splitter 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 know how to use the Splitter component in Angular PrimeNG. We will also lea 4 min read Angular PrimeNG Steps 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 know how to use the Steps component in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG ScrollPanel 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. This article will show us how to use the ScrollPanel Component in Angular PrimeNG. We will also lear 5 min read Angular PrimeNG TabView 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 know how to use the TabView component in Angular PrimeNG. We will also lear 4 min read Angular PrimeNG Toolbar TemplatesAngular 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 know how to use the Toolbar Templates in Angular PrimeNG. The Toolbar Component is used to group buttons and o 3 min read Overlay ComponentAngular PrimeNG ConfirmDialog 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 know how to use ConfirmDialog component in angular primeNG. The ConfirmDialog component is used to make a 4 min read Angular PrimeNG ConfirmPopup 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 ConfirmPopup component in Angular PrimeNG. The Confirm 4 min read Angular PrimeNG Dynamic Dialog 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dynamic OverlayPanel 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 5 min read Angular PrimeNG Sidebar 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 know how to use the Sidebar component in Angular PrimeNG. We will also lear 5 min read Angular PrimeNG 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 know how to use the Tooltip component in Angular PrimeNG. We will also lear 4 min read File ComponentAngular PrimeNG FileUpload 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 know how to use the FileUpload component in Angular PrimeNG. We will also l 6 min read Menu ComponentAngular PrimeNG Breadcrumb 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 know how to use the Breadcrumb component in Angular PrimeNG. We will also l 3 min read Angular PrimeNG ContextMenu 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dock 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Menu 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 know how to use the Menu component in Angular PrimeNG. We will also learn a 4 min read Angular PrimeNG Menubar 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 know how to use the Menubar component in Angular PrimeNG. We will also lear 3 min read Angular PrimeNG MegaMenu 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 know how to use the MegaMenu component in Angular PrimeNG. We will also lea 4 min read Angular PrimeNG PanelMenu 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 know how to use the PanelMenu component in Angular PrimeNG. We will also le 4 min read Angular PrimeNG Steps 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 know how to use the Steps component in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG TabMenu 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 know how to use the TabMenu component in Angular PrimeNG. TabMenu component 3 min read Angular PrimeNG TieredMenu 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 know how to use the TieredMenu component in Angular PrimeNG. We will also l 5 min read Chart ComponentAngular PrimeNG ChartModel 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 5 min read Angular PrimeNG Combo Chart 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 Angular PrimeNG Combo Chart Component. The Combo Chart Component pr 3 min read Messages ComponentAngular PrimeNG Messages 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 know how to use the Messages Component in Angular PrimeNG. We will also lea 5 min read Angular PrimeNG Toast 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. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 5 min read Like