Skip to content

Commit 9115486

Browse files
authored
Update slider default value to 50.0 (#136)
Changed the initial value of the slider in the Demo component from 0.5 to 50.0 to better reflect the intended starting point.
1 parent 2901fd2 commit 9115486

File tree

1 file changed

+1
-1
lines changed
  • preview/src/components/slider/variants/main

1 file changed

+1
-1
lines changed

preview/src/components/slider/variants/main/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use dioxus_primitives::slider::SliderValue;
44

55
#[component]
66
pub fn Demo() -> Element {
7-
let mut current_value = use_signal(|| 0.5);
7+
let mut current_value = use_signal(|| 50.0);
88

99
rsx! {
1010
// Display the current value

0 commit comments

Comments
 (0)