synpad 0.1.0

A full-featured Matrix chat client built with Dioxus
use dioxus::prelude::*;

/// Icon component.
#[component]
pub fn Icon(
    name: String,
    #[props(default = 20)] size: u32,
    #[props(default = "currentColor".to_string())] color: String,
) -> Element {
    // Using emoji/text icons for now
    // TODO: Replace with proper SVG icon set
    rsx! {
        span {
            class: "icon",
            style: "font-size: {size}px; color: {color};",
            "{name}"
        }
    }
}