Expand description
Badges, avatars, placeholders and CSS tooltips.
Structs§
- Image
Placeholder Props - Props for the
ImagePlaceholdercomponent. - Status
Badge Props - Props for the
StatusBadgecomponent. - Status
DotProps - Props for the
StatusDotcomponent. - Tooltip
Props - Props for the
Tooltipcomponent. - User
Avatar Props - Props for the
UserAvatarcomponent.
Functions§
- Image
Placeholder - 封面与头像加载失败时的图片占位:Lucide
image-off图标,尺寸与颜色由class控制。 - Status
Badge - 状态徽章组件。
- Status
Dot - 状态圆点:6px 圆点 + 文字(
.status-dot),后台列表与面板的状态标识。 - Tooltip
- 悬浮提示:深色小气泡,悬停 300ms 后出现,键盘聚焦触发器时立即出现。
- User
Avatar - 用户头像:加载失败显示图片占位,无图回退展示名首字符(陶土浅底)。