soma-ui 0.1.0

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
11
12
13
14
use leptos::prelude::*;

#[component]
pub fn Shimmer(
    #[prop(default = String::new())] class: String,
) -> impl IntoView {
    let combined = format!(
        "animate-shimmer rounded-md bg-gradient-to-r from-muted via-muted/40 to-muted bg-[length:200%_100%] {}",
        class
    );
    view! {
        <div class=combined />
    }
}