"Skeleton"
-
-
-
-
- "#,
- "rust"
- )
- >
+
+
+
+
+ {highlight_str!(
+ r#"
+
+
+ "#,
+ "rust"
+ )}
- ""
"Skeleton Props"
diff --git a/demo/src/pages/slider/mod.rs b/demo/src/pages/slider/mod.rs
index af29e2b..f9e9718 100644
--- a/demo/src/pages/slider/mod.rs
+++ b/demo/src/pages/slider/mod.rs
@@ -12,19 +12,17 @@ pub fn SliderPage() -> impl IntoView {
"Slider"
-
- "#,
- "rust"
- )
- >
+
+
+ {highlight_str!(
+ r#"
+ let value = create_rw_signal(0.0);
+
+
+ "#,
+ "rust"
+ )}
- ""
"Slider Props"
diff --git a/demo/src/pages/space/mod.rs b/demo/src/pages/space/mod.rs
index 73874c1..2db6653 100644
--- a/demo/src/pages/space/mod.rs
+++ b/demo/src/pages/space/mod.rs
@@ -14,21 +14,19 @@ pub fn SpacePage() -> impl IntoView {
-
-
-
-
-
- "#,
- "rust"
- )
- >
+
+
+ {highlight_str!(
+ r#"
+
+
+
+
+
+ "#,
+ "rust"
+ )}
- ""
"vertical"
@@ -38,21 +36,19 @@ pub fn SpacePage() -> impl IntoView {
-
-
-
-
-
- "#,
- "rust"
- )
- >
+
+
+ {highlight_str!(
+ r#"
+
+
+
+
+
+ "#,
+ "rust"
+ )}
- ""
"gap"
@@ -67,26 +63,24 @@ pub fn SpacePage() -> impl IntoView {
-
-
-
-
-
-
-
-
-
-
- "#,
- "rust"
- )
- >
+
+
+ {highlight_str!(
+ r#"
+
+
+
+
+
+
+
+
+
+
+ "#,
+ "rust"
+ )}
- ""
"Space Props"
diff --git a/demo/src/pages/switch/mod.rs b/demo/src/pages/switch/mod.rs
index 74e34bf..2f5d4c6 100644
--- a/demo/src/pages/switch/mod.rs
+++ b/demo/src/pages/switch/mod.rs
@@ -10,21 +10,19 @@ pub fn SwitchPage() -> impl IntoView {
"Switch"
-
-
- }
- "#,
- "rust"
- )
- >
+
+
+
+ {highlight_str!(
+ r#"
+ let value = create_rw_signal(false);
+ view! {
+
+ }
+ "#,
+ "rust"
+ )}
- ""
"Swith Props"
diff --git a/demo/src/pages/tabbar/mod.rs b/demo/src/pages/tabbar/mod.rs
index 38da076..c9566f6 100644
--- a/demo/src/pages/tabbar/mod.rs
+++ b/demo/src/pages/tabbar/mod.rs
@@ -14,29 +14,27 @@ pub fn TabbarPage() -> impl IntoView {
"Tabbar"
""
-
-
- "and"
-
-
- "if"
-
-
- "or"
-
-
- "#,
- "rust"
- )
- >
+
+
+ {highlight_str!(
+ r#"
+ let value = create_rw_signal(String::from("o"));
+
+
+
+ "and"
+
+
+ "if"
+
+
+ "or"
+
+
+ "#,
+ "rust"
+ )}
- ""
"Tabbar Props"
@@ -53,7 +51,7 @@ pub fn TabbarPage() -> impl IntoView {
"value" |
"RwSignal" |
- r#""""# |
+ "Default::default()" |
"Tabbar's value." |
@@ -78,7 +76,7 @@ pub fn TabbarPage() -> impl IntoView {
"key" |
"MaybeSignal" |
- r#""""# |
+ "Default::default()" |
"The indentifier of the tabbar item." |
diff --git a/demo/src/pages/table/mod.rs b/demo/src/pages/table/mod.rs
index 567a458..79c6e2c 100644
--- a/demo/src/pages/table/mod.rs
+++ b/demo/src/pages/table/mod.rs
@@ -30,37 +30,35 @@ pub fn TablePage() -> impl IntoView {
-
-
-
- "tag" |
- "count" |
- "date" |
-
-
-
-
- "div" |
- "2" |
- "2023-10-08" |
-
-
- "span" |
- "2" |
- "2023-10-08" |
-
-
-
- "#,
- "rust"
- )
- >
+
+
+ {highlight_str!(
+ r#"
+
+
+
+ "tag" |
+ "count" |
+ "date" |
+
+
+
+
+ "div" |
+ "2" |
+ "2023-10-08" |
+
+
+ "span" |
+ "2" |
+ "2023-10-08" |
+
+
+
+ "#,
+ "rust"
+ )}
- ""
"Table Props"
@@ -78,18 +76,18 @@ pub fn TablePage() -> impl IntoView {
"single_row" |
"MaybeSignal" |
"true" |
- "" |
+ "Default::default()" |