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

// ponytail: uniform animate-slide-up on all children via CSS selector.
// Ceiling: all children share the same timing; no per-child stagger.
// Upgrade: set animation-delay on each child via a wrapper loop.
#[component]
pub fn AnimateGroup(
    #[prop(default = String::new())] class: String,
    children: Children,
) -> impl IntoView {
    let combined = format!("[&>*]:animate-slide-up {}", class);
    view! {
        <div class=combined>{children()}</div>
    }
}