Skip to content

Commit d1c9c09

Browse files
committed
feat: add callback for swiper instance in Swiper component
1 parent ee4359e commit d1c9c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/bui-core/src/Swiper/Swiper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const Swiper = forwardRef<SwiperRef, SwiperProps>((props, ref) => {
104104
{...others}
105105
onSwiper={(o) => {
106106
swiperInstance.current = o;
107+
props.onSwiper?.(o);
107108
}}
108109
style={{
109110
...sty,

0 commit comments

Comments
 (0)