yggdrasil/components/skeletons/
comment_skeleton.rs1use crate::components::skeletons::atoms::*;
6use dioxus::prelude::*;
7
8#[component]
12pub fn CommentListSkeleton() -> Element {
13 rsx! {
14 div { class: "divide-y divide-[var(--color-paper-border)]/40",
15 div { class: "py-3.5",
17 div { class: "flex items-start gap-3",
18 SkeletonBox { class: "w-8 h-8 rounded-full shrink-0 mt-0.5 ring-1 ring-[var(--color-paper-border)]/60" }
19 div { class: "flex-1 space-y-2",
20 SkeletonBox { class: "h-4 w-24 rounded-md" }
21 SkeletonBox { class: "h-3.5 w-full rounded-md" }
22 SkeletonBox { class: "h-3.5 w-2/3 rounded-md" }
23 }
24 }
25 }
26 div { class: "py-3.5 border-l-2 border-[var(--color-paper-border)]/50 pl-3.5 sm:pl-4.5 my-1",
28 div { class: "flex items-start gap-3",
29 SkeletonBox { class: "w-8 h-8 rounded-full shrink-0 mt-0.5 ring-1 ring-[var(--color-paper-border)]/60" }
30 div { class: "flex-1 space-y-2",
31 SkeletonBox { class: "h-4 w-20 rounded-md" }
32 SkeletonBox { class: "h-3.5 w-3/4 rounded-md" }
33 }
34 }
35 }
36 div { class: "py-3.5",
38 div { class: "flex items-start gap-3",
39 SkeletonBox { class: "w-8 h-8 rounded-full shrink-0 mt-0.5 ring-1 ring-[var(--color-paper-border)]/60" }
40 div { class: "flex-1 space-y-2",
41 SkeletonBox { class: "h-4 w-28 rounded-md" }
42 SkeletonBox { class: "h-3.5 w-full rounded-md" }
43 SkeletonBox { class: "h-3.5 w-1/2 rounded-md" }
44 }
45 }
46 }
47 }
48 }
49}