Skip to main content

Module display

Module display 

Source
Expand description

Badges, avatars, placeholders and CSS tooltips.

Structs§

ImagePlaceholderProps
Props for the ImagePlaceholder component.
StatusBadgeProps
Props for the StatusBadge component.
StatusDotProps
Props for the StatusDot component.
TooltipProps
Props for the Tooltip component.
UserAvatarProps
Props for the UserAvatar component.

Functions§

ImagePlaceholder
封面与头像加载失败时的图片占位:Lucide image-off 图标,尺寸与颜色由 class 控制。
StatusBadge
状态徽章组件。
StatusDot
状态圆点:6px 圆点 + 文字(.status-dot),后台列表与面板的状态标识。
Tooltip
悬浮提示:深色小气泡,悬停 300ms 后出现,键盘聚焦触发器时立即出现。
UserAvatar
用户头像:加载失败显示图片占位,无图回退展示名首字符(陶土浅底)。