See Showcase in the docs for components.

Samples

Button

Some info from the Button showcase.

import Button from 'primevue/button';

Basic

<Button label="Submit" />

Result in the DOM:

<button type="button" class="p-button p-component">
  <span class="p-button-label">Submit</span>
</button>

Icons

Add checkbox.

<Button label="Submit" icon="pi pi-check" iconPos="right" />

Result in the DOM:

<button type="button" class="p-button p-component" iconpos="right">
    <span class="pi pi-check p-button-icon p-button-icon-left"></span>
    <span class="p-button-label">Submit</span>
</button>

Events

<Button label="Submit" @click="handleClick($event)"/>

Labels

<Button label="Primary" />
<Button label="Secondary" class="p-button-secondary" />