Skip to content

Commit 73a564b

Browse files
committed
feat: [Carousel] refactor with hooks
1 parent 3770ee3 commit 73a564b

File tree

5 files changed

+528
-280
lines changed

5 files changed

+528
-280
lines changed

src/components/Carousel/Item.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
3+
interface CarouselItemProps {
4+
width: string;
5+
}
6+
7+
export const CarouselItem: React.FC<CarouselItemProps> = (props) => {
8+
const { width, children } = props;
9+
10+
return (
11+
<div className="Carousel-item" style={{ width }}>
12+
{children}
13+
</div>
14+
);
15+
};

0 commit comments

Comments
 (0)