Skip to content

Components

StatusLabel: a status as a glyph and a word

StatusLabel is how an app built on Meadowstack shows a status: the StatusGlyph in the state's colour, then the word. The glyph is a stack of three layers that fills from the bottom as work moves on, so a column of statuses reads at a glance.

By Bohuslav PoláčekChecked

Left, the four states of the starter's requests with the glyph and tone the starter gives each; right, the glyph's other shapes.

The glyph's states

  • Empty: three outlined layers, nothing done yet.
  • Draft: the bottom layer outlined, the two above it faint.
  • Progress: the outlines fill from the bottom, one layer at a half for waiting, all three when done.
  • Check, cross and arrow: the layers fuse into one block with the mark cut out: approved or done, rejected or cancelled, sent on or shipped.
  • Dot: a live thing, or a plain marker.

Rules

The tones are neutral, info, success, warning and danger. A list's normal state is quiet: rows that are fine show a neutral glyph or plain text, and colour goes to what needs doing, such as late, missing or expiring.

The word always sits beside the glyph, so colour is never the only signal, and a label or a category is not a status: those are neutral chips.

Its entry in the manifest

The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server.

Contrast, measured

Each tone's glyph colour against the page, in both themes.Computed when the site was built from the kit's tokens against the page colour (surface). The word beside the glyph stays in the text colour.

How the starter uses it

templates/starter/src/modules/requests/domain/status.tsx
export const statusMeta: Record<
  RequestStatus,
  { label: string; short: string; filter: string; tone: BadgeTone; icon: ReactNode }
> = {
  draft: { label: "Draft", short: "Draft", filter: "Drafts", tone: "neutral", icon: <StatusGlyph kind="dashed" /> },
  submitted: {
    label: "Waiting for approval",
    short: "Waiting",
    filter: "Waiting",
    tone: "warning",
    icon: <StatusGlyph kind="progress" tone="warning" />,
  },
  approved: {
    label: "Approved",
    short: "Approved",
    filter: "Approved",
    tone: "success",
    icon: <StatusGlyph kind="check" tone="success" />,
  },
  rejected: {
    label: "Rejected",
    short: "Rejected",
    filter: "Rejected",
    tone: "danger",
    icon: <StatusGlyph kind="x" tone="danger" />,
  },
};
The starter's request states in one place, so the list, the filters, the panel and the page always agree.

Sources

Questions

Why not a coloured pill?

A row of coloured pills makes every status shout at once. The glyph keeps the colour to a 16px mark beside a plain word, so a list stays quiet and only what needs doing stands out.

Is the colour enough to tell the states apart?

It does not have to be: the word names the state and the glyph changes its shape with it, so a status reads in greyscale too.

What contrast do the glyph colours have?

The kit's contrast check holds the status colours at 3:1 against the page, the level WCAG 2.2 sets for graphics. The table on this page measures them in both themes.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app