Add doc for the new slot option

pull/411/head
cagataycivici 2020-07-18 14:50:48 +03:00
parent de622bd0a4
commit 511cf5bd0c
1 changed files with 8 additions and 0 deletions

View File

@ -107,6 +107,14 @@ import Button from 'primevue/button';
<Button label="Large" icon="pi pi-check" class="p-button-lg" />
</CodeHighlight>
<h5>Slot</h5>
<p>Custom content can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.</p>
<CodeHighlight>
&lt;Button&gt;
Custom Content
&lt;/Button&gt;
</CodeHighlight>
<h5>Properties</h5>
<p>Any property such as style and class are passed to the underlying button element. Following are the additional properties to configure the component.</p>
<div class="doc-tablewrapper">