severity

open fun severity(value: SeverityProperties.SeverityContext.() -> Severity)

Property to manage the severity value of the component.

myComponent {
severity { warning } // often this is passed from a [Flow] of course
}

Parameters

value

mapping expression from a SeverityContext to the enumeration value.

abstract val severity: NullableDynamicComponentProperty<Severity?>