File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,32 @@ hidden. You can disable this behaviour by setting the `no-close-on-backdrop` pro
623
623
To disable the fading transition/animation when modal opens and closes, just set the prop ` no-fade `
624
624
on the ` <b-modal> ` component.
625
625
626
- ### Disabling built-in buttons
626
+ ### Footer button sizing
627
+
628
+ Fancy smaller or larger buttons in the default footer? Simply set the ` button-size ` prop to ` 'sm' `
629
+ for small buttons, or ` 'lg' ` for larger buttons.
630
+
631
+ ``` html
632
+ <div >
633
+ <b-button v-b-modal.modal-footer-sm >Small Footer Buttons</b-button >
634
+ <b-button v-b-modal.modal-footer-lg >Large Footer Buttons</b-button >
635
+
636
+ <b-modal id =" modal-footer-sm" title =" BootstrapVue" button-size =" sm" >
637
+ <p class =" my-2" >This modal has small footer buttons</p >
638
+ </b-modal >
639
+
640
+ <b-modal id =" modal-footer-lg" title =" BootstrapVue" button-size =" lg" >
641
+ <p class =" my-2" >This modal has large footer buttons</p >
642
+ </b-modal >
643
+ </div >
644
+
645
+ <!-- modal-footer-btn-sizes.vue -->
646
+ ```
647
+
648
+ The prop ` button-size ` has no effect if you have provided your own footer via the
649
+ [ ` modal-footer ` ] ( #custom-rendering-with-slots ) slot.
650
+
651
+ ### Disabling built-in footer buttons
627
652
628
653
You can disable the built-in footer buttons programmatically.
629
654
You can’t perform that action at this time.
0 commit comments