Skip to content

feat(react): expose isFullyVisible in SwiperSlide render props#8175

Merged
nolimits4web merged 1 commit intonolimits4web:masterfrom
fjdelarubia:feat/react-swiperslide-is-fully-visible
Apr 29, 2026
Merged

feat(react): expose isFullyVisible in SwiperSlide render props#8175
nolimits4web merged 1 commit intonolimits4web:masterfrom
fjdelarubia:feat/react-swiperslide-is-fully-visible

Conversation

@fjdelarubia
Copy link
Copy Markdown
Contributor

Summary

Expose isFullyVisible in SwiperSlide render props for React.

Changes

  • add isFullyVisible to the slideData object passed to SwiperSlide render props
  • add isFullyVisible to the React SlideData TypeScript definition

Motivation

Swiper already tracks the swiper-slide-fully-visible state internally, but that state is not currently exposed through SwiperSlide render props.

Exposing it makes the React API more complete and lets consumers implement UI logic based on full visibility without relying on class name parsing or DOM workarounds.

Example

<SwiperSlide>
  {({ isFullyVisible }) => (
    <div>{isFullyVisible ? 'fully visible' : 'not fully visible'}</div>
  )}
</SwiperSlide>

Validation

  • eslint src/react/swiper-slide.mjs
  • npm run build:prod

Notes

@nolimits4web nolimits4web merged commit 3af0002 into nolimits4web:master Apr 29, 2026
@nolimits4web
Copy link
Copy Markdown
Owner

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose isFullyVisible in SwiperSlide render props

2 participants