impulse_thaw/skeleton/
skeleton.rs

1use leptos::prelude::*;
2use thaw_utils::class_list;
3
4#[component]
5pub fn Skeleton(
6    #[prop(optional, into)] class: MaybeProp<String>,
7    children: Children,
8) -> impl IntoView {
9    view! {
10        <div role="progressbar" aria-busy="true" class=class_list!["thaw-skeleton", class]>
11            {children()}
12        </div>
13    }
14}