Skip to content

isFragmentVisible()

Pure helper: whether a fragment step is visible at the current step.

import { isFragmentVisible } from '@react-slides/core'
isFragmentVisible(2, 4, currentStep) // step 2, exit at 4
isFragmentVisible([1, 3], undefined, currentStep)