Hidden
Hides the component it is applied to. It is the inverse of the Visible modifier.
modifier Hidden
import { Hidden, VStack, Text } from ui
export var main = VStack {
Text("First")
Text("Second") with {
Hidden()
}
Text("Third")
}
Hidden components still occupy their space. They just can't be interacted with and don't render onto the screen.
Constructor
(_ hidden)
Conditionally hides the component.
_ hidden: Bool = true
Determines whether or not the component is hidden.
Layout Behavior
None.