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
16
use leptos::prelude::*;

/// Wraps children in a `<div dir="...">` to set LTR/RTL direction for a subtree.
#[component]
pub fn DirectionProvider(
    /// "ltr" or "rtl"
    #[prop(into, default = String::from("ltr"))]
    dir: String,
    children: Children,
) -> impl IntoView {
    view! {
        <div dir=dir>
            {children()}
        </div>
    }
}