From 511cf5bd0ced3b93b8a656966337d05cdcb61eb3 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sat, 18 Jul 2020 14:50:48 +0300 Subject: [PATCH] Add doc for the new slot option --- src/views/button/ButtonDoc.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/button/ButtonDoc.vue b/src/views/button/ButtonDoc.vue index cfb048208..9a9185fbe 100755 --- a/src/views/button/ButtonDoc.vue +++ b/src/views/button/ButtonDoc.vue @@ -107,6 +107,14 @@ import Button from 'primevue/button'; <Button label="Large" icon="pi pi-check" class="p-button-lg" /> +
Slot
+

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.

+ +<Button> + Custom Content +</Button> + +
Properties

Any property such as style and class are passed to the underlying button element. Following are the additional properties to configure the component.