SelectBooleanButton is used to select a boolean value using a button.
<div class="card">
<h:form>
<p:growl id="msgs"/>
<h5>Basic</h5>
<p:selectBooleanButton onLabel="Yes" offLabel="No" style="width:6rem"/>
<h5>With Icon</h5>
<p:selectBooleanButton onLabel="Yes" offLabel="No"
onIcon="pi pi-check" offIcon="pi pi-times" style="width:6rem" />
<h5>Icon Only</h5>
<p:selectBooleanButton onIcon="pi pi-check" offIcon="pi pi-times" />
</h:form>
</div>