HintChoice

sealed interface HintChoice<Value>

Represents a hint choice that can be either a value or an action.

Parameters

Value

The type of value managed by the field

Inheritors

Types

Link copied to clipboard
data class ActionChoice<Value>(val action: suspend MutablePreviewLabField<Value>.() -> Unit) : HintChoice<Value>

A hint choice that executes a suspend action when selected.

Link copied to clipboard
data class ValueChoice<Value>(val value: Value) : HintChoice<Value>

A hint choice that sets a specific value when selected.