From 532600cf23325739411626a0b7bc6ad0b2063bfd Mon Sep 17 00:00:00 2001 From: bqxbqx Date: Tue, 23 Apr 2024 21:11:14 +0800 Subject: [PATCH] feat(carousel): add classname #2 --- packages/ui-react/lib/Carousel/Carousel.tsx | 7 ++++++- packages/ui-react/package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/ui-react/lib/Carousel/Carousel.tsx b/packages/ui-react/lib/Carousel/Carousel.tsx index 3ff0890..208fdb8 100644 --- a/packages/ui-react/lib/Carousel/Carousel.tsx +++ b/packages/ui-react/lib/Carousel/Carousel.tsx @@ -32,6 +32,10 @@ export interface CarouselProps extends HtmlHTMLAttributes { * isSliding */ isSliding?: boolean; + /** + * className + */ + className?: string; } interface ContentProps { @@ -48,6 +52,7 @@ export const Carousel = React.forwardRef( defaultSelected, selected, isSliding = true, + className, ...rest }, ref, @@ -165,7 +170,7 @@ export const Carousel = React.forwardRef( return (