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
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.
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.