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-gray-100 dark:divide-gray-700",
15 div { class: "py-4",
17 div { class: "flex gap-3",
18 SkeletonBox { class: "w-8 h-8 rounded-full shrink-0 mt-0.5" }
19 div { class: "flex-1 space-y-2",
20 SkeletonBox { class: "h-4 w-24 rounded" }
21 SkeletonBox { class: "h-3.5 w-full rounded" }
22 SkeletonBox { class: "h-3.5 w-2/3 rounded" }
23 }
24 }
25 }
26 div { class: "py-4 ml-6",
28 div { class: "flex gap-3",
29 SkeletonBox { class: "w-8 h-8 rounded-full shrink-0 mt-0.5" }
30 div { class: "flex-1 space-y-2",
31 SkeletonBox { class: "h-4 w-20 rounded" }
32 SkeletonBox { class: "h-3.5 w-3/4 rounded" }
33 }
34 }
35 }
36 div { class: "py-4",
38 div { class: "flex gap-3",
39 SkeletonBox { class: "w-8 h-8 rounded-full shrink-0 mt-0.5" }
40 div { class: "flex-1 space-y-2",
41 SkeletonBox { class: "h-4 w-28 rounded" }
42 SkeletonBox { class: "h-3.5 w-full rounded" }
43 SkeletonBox { class: "h-3.5 w-1/2 rounded" }
44 }
45 }
46 }
47 }
48 }
49}