Add doc for the new slot option
parent
de622bd0a4
commit
511cf5bd0c
|
@ -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>
|
||||||
|
<Button>
|
||||||
|
Custom Content
|
||||||
|
</Button>
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
||||||
<h5>Properties</h5>
|
<h5>Properties</h5>
|
||||||
|
|
Loading…
Reference in New Issue