组件预览。
01 / COMPONENT PREVIEW● SkeletonBox
COMPONENT PREVIEW · 跟随全站主题
用法
02 / USAGE下方展示组件的调用方式。
RUST · DIOXUS RSX
rsx! {
SkeletonBox { class: "w-48 h-3 rounded", animate: true }
}
主要属性
03 / PROPERTIES| 属性 / 类型 | 默认值 | 说明 |
|---|
class&'static str | 必填 | 宽度、高度与形状。 |
styleOption<&'static str> | None | 可选行内样式。 |
animatebool | true | 是否显示脉冲动画。 |