Enhanced Button, RadioButton, and SplitButton
Buttons are frequently used elements for any web design. PrimeNG extended plain Button behavior with awesome features.
Button
The Button component is an extension to standard input element for user interactions with icons and theming. The pButton
directive makes a plain HTML button a PrimeNG-enhanced button. A basic example of the Button component with defined label text would be written as follows:
<button name="basic" pButton type="button" label="ClickMe"></button>
The type of the Button should be button
type. The following screenshot shows a snapshot result of the basic Button example:

The Button component supports one event callback named click
, which will be invoked on click of the Button element. Remember that Button's click event is basically from Angular one not specific to PrimeNG.
Icons and severity
The Button component is more useful with icons and severity properties. The icon
attribute is used to represent font-awesome icons...