pub fn SkeletonBox(props: SkeletonBoxProps) -> impl IntoViewExpand description
通用骨架占位块。
Props:
class:Tailwind CSS 类,控制尺寸与形状style:可选的内联样式字符串animate:是否带扫光动画(缺省true)。少数骨架屏在切换动画/骨架屏截断 场景需要关闭,避免动画被截断显得突兀。
外观见 ui.css 的 .skeleton:ink-1 到 ink-2 的柔和扫光,减少动态效果时静止。
§Required Props
class:impl Into<String>
§Optional Props
style: [impl Into<&'static str>](&’static str)animate:bool