soma-ui 0.1.1

A Leptos 0.8 component library: 160+ accessible UI components, blocks, charts, and a ChartDB-style schema diagram — with a prebuilt stylesheet.
Documentation
1
2
3
4
5
6
7
8
9
10
use leptos::prelude::*;

#[component]
pub fn Kbd(#[prop(default = String::new())] class: String, children: Children) -> impl IntoView {
    let combined = format!(
        "inline-flex items-center rounded border border-border bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground shadow-elev-sm {}",
        class
    );
    view! { <kbd class=combined>{children()}</kbd> }
}