Glyphs

Small marks for status, priority, color and people.

BacklogTodoIn progressDoneCanceled
UrgentHighMediumLow
BugFeatureMCMaya ChenScout (agent)

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/glyph

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.
imagestringA picture's URL, shown instead of the initials.

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.

Source