UserChip (用户胶囊)

KunUser 的头像 + 名称 + 描述胶囊。

基础用法

Kun
Kun
Basic.vue

带描述

Kun
Kun2024 年加入 · 管理员
Description.vue

可点击

Navigation.vue

长文本截断

这是一个非常非常长的用户名会被自动截断显示省略号
这是一个非常非常长的用户名会被自动截断显示省略号同样很长的一段个人简介也会被截断而不会撑破布局
Truncate.vue

属性

属性类型默认值说明
user *KunUser | null—
classNamestring""
descriptionstring""
disableFloatingboolean—Legacy floating user-card toggle. 已废弃:No-op: KunUserChip renders no floating card. Accepted so existing call sites still type-check; safe to remove from them.
floatingPosition"top" | "right" | "bottom" | "left"—Legacy floating user-card placement. 已废弃:No-op: KunUserChip renders no floating card. Accepted so existing call sites still type-check; safe to remove from them.
isNavigationbooleantrueWhen true (default) and `user.id` is not 0, the whole chip is a real <a>/link to the user's profile (crawlable, name as anchor text).
sizeKunAvatarSize"md"