组件 · Agent
LiveAgentActivityBar
A live strip of working agents above the tab bar or at the bottom of the sidebar; deprecated, because working agents are shown where they already appear.
import { LiveAgentActivityBar } from "@botiverse/raft-ui";LiveAgentActivityBar is a strip of avatars, a status light and a line of text that says what agents are doing, placed above the phone tab bar or at the bottom of the desktop sidebar. It is deprecated and removed in raft-ui 1.0, and there is no single component that replaces it. The strip took the spot on the screen people reach most, changed all the time and was usually about something other than the page being read (0006). What it showed now goes back to the places where agents already appear, listed in Working agents.
When to use
| To show | Use |
|---|---|
| Whether anyone is working, and who | The summary line: an avatar stack (AvatarGroup, Avatar) and a count, in the web top bar, in a phone's Home bar, or in the sidebar header when there is no top bar |
| What one agent is doing | The right side of its own row: the Sidebar row, on desktop and on a phone |
| Who is working in a place | The PanelMeta line of its header (Panel) |
| That an agent is working, in the conversation | The still yellow light on its avatar (MessageItem) |
| Every working agent | Working now: a list opened from the summary in a Popover, on a phone too |
API
LiveAgentActivityBar, LiveAgentActivityBarAvatar, LiveAgentActivityBarContent, LiveAgentActivityBarRow
| Prop | 类型 | 默认值 |
|---|---|---|
| Allows you to replace the component's HTML element with a different tag, or compose it with another component. | ReactElement | ((props, state) => ReactElement) |
Also takes the attributes of its element.
LiveAgentActivityBarStatus
| Prop | 类型 | 默认值 |
|---|---|---|
| A status light (online, busy, error, offline, external): a fixed meaning that needs its word nearby, or an aria-label. It takes the place of `variant`'s colour. | "online" | "busy" | "error" | "offline" | "external" | |
| Allows you to replace the component's HTML element with a different tag, or compose it with another component. | ReactElement | ((props, state) => ReactElement) |
Also takes the attributes of its element.
LiveAgentActivityBarText
| Prop | 类型 | 默认值 |
|---|---|---|
| Allows you to replace the component's HTML element with a different tag, or compose it with another component. | ReactElement | ((props, state) => ReactElement) |
Also takes the attributes of its element.
相关组件
改动
- 0.7.0 · ChangedDeprecated, to be removed in 1.0:
FloatButton/FloatButtonGroup(not part of the design system),LegacyTaskPanel*(unused), andLiveAgentActivityBar*(the design system shows working agents where they appear). - 0.5.0 · AddedAdded
beam={false}toLiveAgentActivityBarto disable the Elegant animated border and glow while preserving enter and exit transitions. - 0.2.0 · AddedGraduated
DescriptionList, Files panel primitives, andLiveAgentActivityBarto the stable entry.DescriptionListincludes horizontal layout support. - 0.0.21 · AddedAdded
LiveAgentActivityBarcompound parts (Row,Avatar,Status,Content,Text) for composable live agent activity status.