---
title: "Fr"
description: "Represents a flexible unit used for sizing [Grid] tracks.

One [Fr] unit represents a fraction of the *remaining* space in the grid container after
[GridTrackSize.Fixed] and [GridTrackSize.Percentage] tracks have been allocated.

When multiple tracks use [Fr] units (e.g., `1.fr`, `2.fr`, `1.fr`), the remaining space is
divided proportionally to their weights. The total number of \"fractional units\" is the sum of all
weights (in the example, 1 + 2 + 1 = 4). Each track receives a share of the space equal to its
weight divided by the total weight.
- The `1.fr` tracks would each get 1/4 of the remaining space.
- The `2.fr` track would get 2/4 (or 1/2) of the remaining space."
type: "class"
---

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


<a id='references'></a>

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


```kotlin
@ExperimentalGridApi
value class Fr(val value: Float)
```


Represents a flexible unit used for sizing `Grid` tracks.

One `Fr` unit represents a fraction of the *remaining* space in the grid container after
`GridTrackSize.Fixed` and `GridTrackSize.Percentage` tracks have been allocated.

When multiple tracks use `Fr` units (e.g., `1.fr`, `2.fr`, `1.fr`), the remaining space is
divided proportionally to their weights. The total number of "fractional units" is the sum of all
weights (in the example, 1 + 2 + 1 = 4). Each track receives a share of the space equal to its
weight divided by the total weight.
- The `1.fr` tracks would each get 1/4 of the remaining space.
- The `2.fr` track would get 2/4 (or 1/2) of the remaining space.



