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