PreferenceItem
fun PreferenceItem(icon: ToolkitIcon? = null, title: String? = null, summary: String? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, enabled: Boolean = true, rippleEffectDp: Dp = SizeConstants.LargeSize, onClick: () -> Unit = {}, ga4Event: Ga4EventData? = null, ga4EventProvider: () -> Ga4EventData?? = null)(source)
Stateless preference row with Toolkit click feedback and analytics. Supply display-ready text, with title meaningful on its own and summary adding context.
Parameters
icon
Any ToolkitIcon; an overload takes an ImageVector.
ga4EventProvider
Resolves analytics at click time, taking precedence over ga4Event when it returns an event.
fun PreferenceItem(icon: ImageVector, title: String? = null, summary: String? = null, useIconContainer: Boolean = false, iconColor: Color? = null, iconContainerColor: Color? = null, enabled: Boolean = true, rippleEffectDp: Dp = SizeConstants.LargeSize, onClick: () -> Unit = {}, ga4Event: Ga4EventData? = null, ga4EventProvider: () -> Ga4EventData?? = null)(source)
PreferenceItem with an ImageVector icon.