IconParams
data class IconParams(val position: IconPosition.Horizontal, @DrawableRes val iconId: Int?, val contentDescription: String?, val onClick: () -> Unit? = null)
Icon parameters for clickable icons used in eg. Input field related components.
Constructors
Link copied to clipboard
constructor(position: IconPosition.Horizontal, @DrawableRes iconId: Int?, contentDescription: String?, onClick: () -> Unit? = null)
Properties
Link copied to clipboard
text used by accessibility services to describe what this icon represents. This text should be localized, such as by using androidx.compose.ui.res.stringResource or similar.
Link copied to clipboard
Only applicable for IconPosition.Horizontal.Trailing. will be ignored.
Link copied to clipboard
IconPosition.Horizontal indicates where the icon will be displayed