---
title: "TextUnit"
description: "Construct a new TextUnit."
type: "function"
---

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


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


```kotlin
fun TextUnit(value: Float, type: TextUnitType): TextUnit
```


Construct a new TextUnit.

#### Parameters

| | |
| --- | --- |
| value | of the dimension |
| type | dimension |




