<div class='type'>Composable Function</div>


<a id='references'></a>



<h2 id="rememberpickerstate-initialnumberofoptions-initiallyselectedoption-repeatitems">rememberPickerState</h2>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@Composable
public fun rememberPickerState(
    initialNumberOfOptions: Int,
    initiallySelectedOption: Int = 0,
    repeatItems: Boolean = true,
): PickerState
```


Creates a `PickerState` that is remembered across compositions.

#### Parameters

| | |
| --- | --- |
| initialNumberOfOptions | the number of options |
| initiallySelectedOption | the option to show in the center at the start |
| repeatItems | if true (the default), the contents of the component will be repeated |