Glyphs

View as Markdown

Small marks for status, priority, color and people.

BacklogTodoIn progressDoneCanceled
UrgentHighMediumLow
BugFeatureMaya ChenScout (agent)

When to use

Small marks for status, priority, color and people. Use Avatar instead when the mark stands for a person and needs a name or picture.

Usage

import { GlyphView } from "./ui/uicontext/components/Glyph.ts"import { color } from "./ui/uicontext/components/tokens.stylex.ts"
export const InProgress = <M>(h: Html.H<M>) =>	GlyphView(h, { _tag: "Ring", color: color.caution, progress: 0.5, label: "In progress" })

API reference

Options

Avatar options
NameTypeDescription
idrequiredstringA stable id, which picks the color, so one person keeps theirs everywhere.
namerequiredstringThe full name: the initials come from it, and it labels the avatar.
agentbooleanDraws an agent: a rounded square with the agent mark.
appbooleanDraws an app that isn't an agent (a poll, a build bot): a rounded square with its initials, no mark.
imagestringA picture's URL, shown instead of the initials.

Keyboard and accessibility

  • A ring or bars glyph is an image named by its label, so a screen reader hears "In progress" or "High priority", not a shape.
  • An avatar shows initials, or a picture with empty alt, and carries the name as a tooltip; say the name in text beside it where it matters. A swatch is decoration only.

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/glyphs

Source