ColorComposable

fun <T : Any> ColorComposable(modifier: Modifier = Modifier, selectedToken: T, token: T, color: Color, onClick: (Color, T) -> Unit, iconTint: Color, selectedBorderTint: Color = color.copy(alpha = 0.4f), unselectedBorderTint: Color = Color.Transparent, borderSize: Dp = 4.dp)(source)

Renders the ColorComposable UI for the SDAI presentation layer.

Author

Dmitriy Moroz

Parameters

modifier

Compose modifier applied to the rendered UI.

selectedToken

selected token value consumed by the API.

token

token value consumed by the API.

color

color value consumed by the API.

onClick

callback invoked when the user activates the control.

iconTint

icon tint value consumed by the API.

selectedBorderTint

selected border tint value consumed by the API.

unselectedBorderTint

unselected border tint value consumed by the API.

borderSize

border size value consumed by the API.