From 8e143185b60207d061255d50db10a028a37c9d4c Mon Sep 17 00:00:00 2001 From: bqxbqx <132878537+BQXBQX@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:12:55 +0800 Subject: [PATCH] Dev bqx (#38) 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 (