# LinearProgressIndicator

> A determinate linear progress indicator that shows how far a process has advanced.

## Code Examples

### LinearProgressIndicatorSample

```kotlin
@Sampled
@Composable
fun LinearProgressIndicatorSample() {
    val progress = 0.5f

    // Animate progress changes, as the indicator doesn't animate between values.
    val animatedProgress by animateFloatAsState(targetValue = progress)
    LinearProgressIndicator(progress = { animatedProgress })
}
```

### IndeterminateLinearProgressIndicatorSample

```kotlin
@Sampled
@Composable
fun IndeterminateLinearProgressIndicatorSample() {
    LinearProgressIndicator()
}
```
