synpad 0.1.0

A full-featured Matrix chat client built with Dioxus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use dioxus::prelude::*;

/// Date divider between messages on different days.
#[component]
pub fn DaySeparator(date: String) -> Element {
    rsx! {
        div {
            class: "day-separator",
            div { class: "day-separator__line" }
            span { class: "day-separator__text", "{date}" }
            div { class: "day-separator__line" }
        }
    }
}