You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val state = rememberWheelPickerState(initialIndex =0)
val currentIndex = state.currentIndex
LaunchedEffect(Unit) {
state.scrollToIndex(3)
state.animateScrollToIndex(3)
}
API Reference
VerticalWheelPicker
Parameter
Type
Default
Description
items
List<T>
required
List of items to display
modifier
Modifier
Modifier
Modifier
state
WheelPickerState
rememberWheelPickerState()
State holder
itemHeight
Dp
48.dp
Height of each item
visibleItemCount
Int
5
Number of visible items (odd recommended)
infinite
Boolean
true
Enable infinite scrolling
style
WheelPickerStyle
WheelPickerDefaults.style()
Style configuration
onItemSelected
(Int, T) -> Unit
{}
Callback when item is settled
itemContent
@Composable (T, Boolean) -> Unit
required
Item UI slot
HorizontalWheelPicker
Same as VerticalWheelPicker but with itemWidth instead of itemHeight.
WheelPickerState
Property / Function
Description
currentIndex
Currently selected item index
isScrollInProgress
Whether scrolling is in progress
scrollToIndex(index)
Scroll to index without animation
animateScrollToIndex(index)
Scroll to index with animation
⭐ RatingBar
Highly customizable RatingBar for Jetpack Compose.
Features spring animation, haptic feedback, half-step support, and custom icon slot API.
Copyright 2026 sonms
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
About
Smooth & beautiful Jetpack Compose component library inspired by iOS 🎡⭐ WheelPicker with infinite scroll & 3D layers · RatingBar with spring animation & haptic feedback