# Visibility

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/ConstraintLayoutBaseScope.kt+class:androidx.constraintlayout.compose.Visibility) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)


```
class Visibility
```

<br />

*** ** * ** ***

The overall visibility of a widget in a `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintLayout.composable#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)`.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility#Gone()` Like `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility#Invisible()`, but the dimensions of the widget will collapse to (0,0), the constraints will still apply. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility#Invisible()` The widget will not be painted in the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintLayout.composable#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)` but its dimensions and constraints will still apply. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility#Visible()` Indicates that the widget will be painted in the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintLayout.composable#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)`. |

## Public companion properties

### Gone

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Gone: Visibility
```

Like `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Visibility#Invisible()`, but the dimensions of the widget will collapse to (0,0), the constraints will still apply.

### Invisible

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Invisible: Visibility
```

The widget will not be painted in the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintLayout.composable#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)` but its dimensions and constraints will still apply.

Equivalent to forcing the alpha to 0.0.

### Visible

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Visible: Visibility
```

Indicates that the widget will be painted in the `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintLayout.composable#ConstraintLayout(androidx.compose.ui.Modifier,kotlin.Int,androidx.compose.animation.core.AnimationSpec,kotlin.Function0,kotlin.Function1)`. All render-time transforms will apply normally.