+ {
+ move || {
+ let left_text = left_text.get();
+ if left_arrow.get() || !left_text.is_empty() {
+ view! { cx, class=class_name,
+
+ {
+ if left_arrow.get() {
+ view! { cx,
+
+ }.into()
+ } else {
+ None
+ }
+ }
+ { left_text }
+
+ }.into()
+ } else {
+ None
+ }
+ }
+ }
+
+ { move || title.get() }
+
+ {
+ move || {
+ let right_text = right_text.get();
+ if !right_text.is_empty() {
+ view! { cx, class=class_name,
+
+ { right_text }
+
+ }.into()
+ } else {
+ None
+ }
+ }
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/src/mobile/nav_bar/nav-bar.css b/src/mobile/nav_bar/nav-bar.css
new file mode 100644
index 0000000..bc5195a
--- /dev/null
+++ b/src/mobile/nav_bar/nav-bar.css
@@ -0,0 +1,40 @@
+.melt-nav-bar {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 46px;
+ line-height: 46px;
+ background-color: #fff;
+}
+
+.melt-nav-bar__center {
+ max-width: 60%;
+ font-weight: 600;
+ text-align: center;
+ margin: 0 auto;
+}
+
+.melt-nav-bar__left {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ padding: 0 12px;
+ cursor: pointer;
+
+ display: flex;
+ align-items: center;
+}
+
+.melt-nav-bar__right {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ padding: 0 12px;
+ cursor: pointer;
+
+ display: flex;
+ align-items: center;
+}