PreviewLabScope
The scope of the PreviewLab, which provides methods to create fields, handle events, and manage layout nodes.
See also
Types
Functions
An effect that calls onEvent to record an event when a value changes. This is useful when you want to monitor a specific value in a Composable, such as a CompositionLocal value.
Creates a mutable field that can be used to store and observe state in the Preview Lab. Use fieldValue if you do not need to update the status. This is useful, for example, for a TextField, where you want to use both the state value and its updates. For example, use the following.
Creates a field that can be used to store and observe state in the Preview Lab. Use this if you do not need to update the status. Use when the change process does not need to be included in the Preview, for example, in the button text below.
Provides default Compose composition local fields for PreviewLab.
Create a function to record events. This is simply a short-hand for the onEvent call.