withData

fun <T : Any> withData(type: KClass<T>, value: T): InteractiveComponent

Creates a new instance of this component with the user data attached.