---
title: "Fill"
description: "Creates a solid color [Fill]."
type: "function"
lastmod: "2026-09-24"
---
## API Reference

### Fill

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi @Stable public fun Fill(color: Color): Fill
```

Creates a solid color [Fill](/jetpack-compose/androidx.compose.foundation/foundation/functions/Fill/api).

#### Parameters

| | |
| --- | --- |
| color | color to fill with |

### Fill

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi @Stable public fun Fill(brush: Brush): Fill
```

Creates a brush [Fill](/jetpack-compose/androidx.compose.foundation/foundation/functions/Fill/api).

#### Parameters

| | |
| --- | --- |
| brush | gradient or shader brush to fill with |

### Fill

> Source set: Common

```kotlin
public fun Fill(value: Any?): Fill?
```

Converts `value` to a [Fill](/jetpack-compose/androidx.compose.foundation/foundation/functions/Fill/api) if it is a supported fill type. Returns `null` otherwise.

#### Parameters

| | |
| --- | --- |
| value | object to convert to a [Fill](/jetpack-compose/androidx.compose.foundation/foundation/functions/Fill) |
