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

@ -105,6 +105,14 @@ import Button from 'primevue/button';
<Button label="Small" icon="pi pi-check" class="p-button-sm" /> <Button label="Small" icon="pi pi-check" class="p-button-sm" />
<Button label="Normal" icon="pi pi-check" class="p-button" /> <Button label="Normal" icon="pi pi-check" class="p-button" />
<Button label="Large" icon="pi pi-check" class="p-button-lg" /> <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> </CodeHighlight>
<h5>Properties</h5> <h5>Properties</h5>