Workspace Avatar
Shows a workspace's logo in a rounded square, falling back to its colored initials.
Show codeHide code
Installation
import { WorkspaceAvatar } from "@makeplane/propel/components/workspace-avatar";Usage
import { WorkspaceAvatar } from "@makeplane/propel/components/workspace-avatar";
export default function BasicDemo() {
return (
<WorkspaceAvatar
size="md"
alt="Plane workspace"
fallback="PV"
src="https://avatars.githubusercontent.com/u/73642778?s=128"
/>
);
}Examples
At 2xs (16px), derived initials and string fallback values display only their first Unicode grapheme. Larger sizes retain their initials. Custom React fallback content is rendered as supplied; keep it suitable for the available space.
Sizes
size tracks Avatar step for step — 2xs 16 / xs 20 / sm 24 /
md 28 / lg 32 / xl 40 / 2xl 56 / 3xl 64 px — so a workspace and a person line up at
the same rung. Only the corner radius differs, squaring off as the avatar grows.
Show codeHide code
Variants
The initials fall back to a variant palette shared with Avatar, derived stably from alt — it is not a consumer prop.
Show codeHide code
States
The three fallback states side by side: logo, initials, and the anonymous workspace icon.
As with Avatar, initials are derived from alt when fallback is omitted, so the anonymous glyph is reached only when no name resolves either.
Show codeHide code
With tooltip
Pass tooltip to show the workspace name on hover. true reuses alt; a string is the label and works without alt.
Show codeHide code
API Reference
WorkspaceAvatar
The ready-made workspace avatar: a logo that falls back to initials, or an anonymous workspace
icon when there are no initials either, composed from the elements/workspace-avatar parts
(WorkspaceAvatar root + WorkspaceAvatarImage + WorkspaceAvatarFallback). Pass src for the
logo and fallback for initials; the initials color is chosen automatically and is not a
consumer prop.