Skip to content

Commit

Permalink
feat(carousel): add classname #2
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX committed Apr 23, 2024
1 parent 959a243 commit 532600c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/ui-react/lib/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export interface CarouselProps extends HtmlHTMLAttributes<HTMLDivElement> {
* isSliding
*/
isSliding?: boolean;
/**
* className
*/
className?: string;
}

interface ContentProps {
Expand All @@ -48,6 +52,7 @@ export const Carousel = React.forwardRef<HTMLDivElement, CarouselProps>(
defaultSelected,
selected,
isSliding = true,
className,
...rest
},
ref,
Expand Down Expand Up @@ -165,7 +170,7 @@ export const Carousel = React.forwardRef<HTMLDivElement, CarouselProps>(

return (
<div
className={carouselClass}
className={`${carouselClass} ${className}`}
ref={ref}
style={{ width: `${width}px`, height: `${height}px` }}
{...rest}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ui-aurora/react",
"version": "0.0.9",
"version": "0.0.10",
"description": "A React UI library built for SASTOJ",
"author": "sast",
"license": "MIT",
Expand Down

0 comments on commit 532600c

Please sign in to comment.