---
title: "fillWidth"
description: "Sets the width of the component to fill the parent's available width (equivalent to
`width(1.0f)`). The specified width includes any padding.

This property is *not* inherited"
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalFoundationStyleApi
fun StyleScope.fillWidth()
```


Sets the width of the component to fill the parent's available width (equivalent to
`width(1.0f)`). The specified width includes any padding.

This property is *not* inherited



