HorizontalWavyDivider

fun HorizontalWavyDivider(modifier: Modifier = Modifier, waveHeight: Dp = WavyDividerDefaults.WaveSize, thickness: Dp = WavyDividerDefaults.Thickness, color: Color = WavyDividerDefaults.color)(source)

A horizontal divider drawn as the toolkit's wavy line, il_wavy_line.

It fills the available width and adapts to whatever it is given. The wave scales with waveHeight, keeping the drawable's proportions, and its wavelength is stretched or squeezed slightly so a whole number of half-waves fits the width. Both ends therefore finish cleanly on the centre line at any width, instead of the wave being cut off mid-curve.

Like Material's HorizontalDivider it is decorative and adds nothing to the semantics tree.

Parameters

modifier

applied to the divider. Constrain its width here to shorten it.

waveHeight

the band the wave occupies, crest to trough including the stroke. The wave is longer when this is taller, so the curve keeps its shape.

thickness

the stroke width of the line.

color

the line colour. Defaults to the colour of Material's plain dividers.