PagerIndicator

fun PagerIndicator(modifier: Modifier = Modifier, pagerState: PagerState, color: Color, initialPage: Int = 0, indicatorCount: Int = 5, indicatorSmallSize: Dp = 4.dp, indicatorBigSize: Dp = 20.dp, space: Dp = 6.dp, inactiveColorAlpha: Float = 0.3f, orientation: IndicatorOrientation = IndicatorOrientation.HORIZONTAL)

A customizable page indicator that can be displayed in either horizontal or vertical orientation. The indicator shows the current page position and supports smooth transitions between pages.

Parameters

modifier

The modifier to be applied to the indicator

pagerState

The state of the pager being monitored

color

The color of the active page indicator

initialPage

The initial page to display

indicatorCount

The number of visible indicators

indicatorSmallSize

The size of inactive page indicators

indicatorBigSize

The size of the active page indicator

space

The spacing between indicators

inactiveColorAlpha

The alpha value for inactive indicators

orientation

The orientation of the indicator (horizontal or vertical)