---
title: "fillSize"
description: "Sets the width and height of the component to fill the parent's available space (equivalent to
`width(1.0f)` and `height(1.0f)`). The specified size 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.fillSize()
```


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

This property is *not* inherited



