diff --git a/src/app/components/carousel/carousel.ts b/src/app/components/carousel/carousel.ts
index 1409301165e..a8c1455b23b 100755
--- a/src/app/components/carousel/carousel.ts
+++ b/src/app/components/carousel/carousel.ts
@@ -33,6 +33,8 @@ import { UniqueComponentId } from 'primeng/utils';
import { CarouselPageEvent, CarouselResponsiveOptions } from './carousel.interface';
import { PrimeNGConfig } from 'primeng/api';
import { DomHandler } from 'primeng/dom';
+import { ButtonModule } from '../button/button';
+import { ButtonProps } from 'primeng/button';
/**
* Carousel is a content slider featuring various customization options.
* @group Components
@@ -47,23 +49,25 @@ import { DomHandler } from 'primeng/dom';
-
+
-
@@ -276,6 +282,16 @@ export class Carousel implements AfterContentInit {
* @group Props
*/
@Input() styleClass: string | undefined;
+ /**
+ * Used to pass all properties of the ButtonProps to the Button component.
+ * @group Props
+ */
+ @Input() prevButtonProps: ButtonProps;
+ /**
+ * Used to pass all properties of the ButtonProps to the Button component.
+ * @group Props
+ */
+ @Input() nextButtonProps: ButtonProps;
/**
* Callback to invoke after scroll.
* @param {CarouselPageEvent} event - Custom page event.
@@ -932,7 +948,7 @@ export class Carousel implements AfterContentInit {
}
@NgModule({
- imports: [CommonModule, SharedModule, RippleModule, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon],
+ imports: [CommonModule, SharedModule, RippleModule, ChevronRightIcon, ChevronLeftIcon, ChevronDownIcon, ChevronUpIcon, ButtonModule],
exports: [CommonModule, Carousel, SharedModule],
declarations: [Carousel]
})