<div class='sourceset sourceset-common'>Common</div>

```kotlin
object CarouselDefaults
```

Contains the default values used by [Carousel](/jetpack-compose/androidx.tv/tv-material/components/Carousel).

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val MinSmallItemSize = 40.dp
```

The minimum size that a carousel strategy can choose its small items to be. *

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val MaxSmallItemSize = 56.dp
```

The maximum size that a carousel strategy can choose its small items to be. *

## Functions

<h2 id="singleadvanceflingbehavior-state-snapanimationspec">singleAdvanceFlingBehavior</h2>

```kotlin
@Composable
    fun singleAdvanceFlingBehavior(
        state: CarouselState,
        snapAnimationSpec: AnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow),
    ): TargetedFlingBehavior
```

A [TargetedFlingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TargetedFlingBehavior) that limits a fling to one item at a time. `snapAnimationSpec` can
be used to control the snap animation.

#### Parameters

| | |
| --- | --- |
| state | The [CarouselState](/jetpack-compose/androidx.compose.material3/material3/classes/CarouselState) that controls which Carousel this TargetedFlingBehavior will be applied to. |
| snapAnimationSpec | The animation spec used to finally snap to the position. |

#### Returns

| | |
| --- | --- |
|  | An instance of [TargetedFlingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TargetedFlingBehavior) that performs snapping to the next item. The animation will be governed by the post scroll velocity and the Carousel will use `snapAnimationSpec` to approach the snapped position |

<hr class="docs-overload-divider">

<h2 id="multibrowseflingbehavior-state-decayanimationspec-snapanimationspec">multiBrowseFlingBehavior</h2>

```kotlin
@Composable
    fun multiBrowseFlingBehavior(
        state: CarouselState,
        decayAnimationSpec: DecayAnimationSpec<Float> = rememberSplineBasedDecay(),
        snapAnimationSpec: AnimationSpec<Float> = spring(stiffness = Spring.StiffnessMediumLow),
    ): TargetedFlingBehavior
```

A [TargetedFlingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TargetedFlingBehavior) that flings without a limited distance and snaps to a final item
according to the gesture's velocity.

The Carousel may use [decayAnimationSpec](/jetpack-compose/androidx.compose.animation/animation-core/interfaces/DecayAnimationSpec) or `snapAnimationSpec` to approach the target item
(calculated using the fling velocity) post-scroll. If the gesture has a high enough velocity
to approach the target item, the Carousel will use [decayAnimationSpec](/jetpack-compose/androidx.compose.animation/animation-core/interfaces/DecayAnimationSpec) followed by
`snapAnimationSpec` for the final step of the animation. If the gesture doesn't have enough
velocity, it will use `snapAnimationSpec` to reach the snapped position.

#### Parameters

| | |
| --- | --- |
| state | The [CarouselState](/jetpack-compose/androidx.compose.material3/material3/classes/CarouselState) that controls which Carousel this TargetedFlingBehavior will be applied to. |
| decayAnimationSpec | The animation spec used to approach the target offset when the the fling velocity is large enough to naturally decay. |
| snapAnimationSpec | The animation spec used to finally snap to the position. |

#### Returns

| | |
| --- | --- |
|  | An instance of [TargetedFlingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TargetedFlingBehavior) that performs flinging based on the gesture velocity and then snapping to the closest item post-fling. The animation will be governed by the post scroll velocity and the Carousel will use `snapAnimationSpec` to approach the snapped position |

<hr class="docs-overload-divider">

<h2 id="nosnapflingbehavior">noSnapFlingBehavior</h2>

```kotlin
@Composable
    fun noSnapFlingBehavior(): TargetedFlingBehavior
```

A [TargetedFlingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TargetedFlingBehavior) that flings according to the gesture velocity and does not snap
post-fling.

#### Returns

| | |
| --- | --- |
|  | An instance of [TargetedFlingBehavior](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/TargetedFlingBehavior) that performs flinging based on the gesture velocity and does not snap to anything post-fling. |