Skip to content

Commit

Permalink
Update documentation of parameters in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Jul 8, 2024
1 parent 2b3dcae commit b39035a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ fun MyComposable() {
WavySlider(
value = fraction,
onValueChange = { fraction = it },
waveLength = 16.dp, // Set this to 0.dp to get a regular Slider
waveHeight = 16.dp, // Set this to 0.dp to get a regular Slider
waveLength = 16.dp, // Set this to 0.dp to make the Slider flat
waveHeight = 16.dp, // Set this to 0.dp to make the Slider flat
waveVelocity = 15.dp to HEAD, // Speed per second and its direction
waveThickness = 4.dp, // Defaults to the specified trackThickness
trackThickness = 4.dp, // Defaults to 4.dp, same as regular Slider
waveThickness = 4.dp, // Defaults to 4.dp irregardless of variant
trackThickness = 4.dp, // Defaults to values based on Material 2/3
incremental = false, // Whether to gradually increase waveHeight
// animationSpecs = ... // Customize various animations of the wave
)
Expand Down

0 comments on commit b39035a

Please sign in to comment.