JengaTimelineMarker

fun JengaTimelineMarker(color: Color, modifier: Modifier = Modifier, style: JengaTimelineMarkerStyle = JengaTimelineMarkerStyle.Filled, size: Dp = JengaTimelineDefaults.MarkerSize, ringWidth: Dp = JengaTimelineDefaults.RingWidth, contentColor: Color = if (style == JengaTimelineMarkerStyle.Ring) color else JengaTimelineDefaults.colors().onMarker, content: @Composable () -> Unit? = null)(source)

A round timeline marker in color, filled or as a ring, with optional content (e.g. a step number or an icon) centered inside.

Parameters

color

the fill or outline color.

modifier

the Modifier for this marker.

style

filled or ring; see JengaTimelineMarkerStyle.

size

the marker diameter.

ringWidth

the outline width of a ring marker.

contentColor

the color provided to content; the ring color for a ring marker, so its content reads on any background, and the on-marker color for a filled one.

content

optional centered content.