fieldValue

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.

PreviewLab {
TextField(
value = fieldValue { StringField("myText", "Click Me!") },
onValueChange = {},
)
}