Skip to content
Knowns UI
Get ProSign in

Issue Chip

The issue a line of text became, at the end of its row: a status ring, the id and the title in a small chip. While a line has no issue yet, the chip is a Create issue action that waits until the row is hovered or focused.

On this page
Used for
  • Action items
  • To-do rows
  • Comment references
  • Table cells

Examples

Size

Every status

Installation

npx knowns-ui@latest add issue-chip
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

issue
{ id, title?, status?, statusLabel?, icon?, assignee? } | null
The issue. Null or left out shows the Create action (or nothing without onCreate).
onOpen / href
(e) => void / string
Opens the issue. With href the chip is a link.
showTitle
boolean
Defaulttrue
The title after the id, cut with an ellipsis.
showAssignee
boolean
Defaultfalse
The assignee's name after the title. It is read out either way.
onCreate
() => void
Creates an issue from the row while it has none.
createLabel
string
Default"Create issue"
The Create action's words.
shortcut
string
A key hint in the Create action, such as "⌘ Enter", split on spaces into keys.
active
boolean
The row has the caret or the pointer: the Create action shows. Without it, a hover or focus on the parent or a data-issue-row ancestor shows it.
size
"sm" | "md"
Default"md"
20 or 24px high.
IssueStatusGlyph
{ status, label? }
The status ring alone, decorative unless it has a label.

Accessibility

  • The chip is a button or a link named "id, title, status, assignee"; the status ring is decorative, so it is not read twice.
  • The Create action is a real button in the tab order even while it is faded out, and shows when it gets focus. On touch screens it is always shown.
  • Status is told by the word in the name and the ring's shape, not by colour alone.

What it handles

  1. 01Shows an issue as a small chip: a status ring, the id and the title, cut with an ellipsis to fit its row.
  2. 02Opens the issue on click, or is a link with href; the whole chip is named with id, title, status and assignee.
  3. 03Without an issue it is a Create issue action that stays hidden until its row is hovered or focused, or the row has the caret.
  4. 04Shows a key hint such as Cmd Enter in the Create action, hidden on phones.
  5. 05Never takes the caret inside a rich editor: it is not editable and belongs after the row's text.

States

First render
Nothing moves
none
Row hovered or focused
The Create action fades in
120ms, ease out
Hover on the chip
The fill darkens a step
120ms, ease out
Touch screen
The Create action is always shown
none
Reduced motion
It appears at once
0ms

Works with

When to use

When to use

  • The issue a line became, at the end of a to-do row or an action item, with a Create action while it has none.
  • A compact reference to an issue in a comment, a list or a table cell.

When not to use

  • A state without an id: use Status Dot.
  • A removable label: use Tag.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Issue Chip to my app and wire it to my own data.
  • I need the issue a line became, at the end of a to-do row or an action item, with a Create action while it has none. Set that up with the Knowns UI Issue Chip.
  • Which Issue Chip props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "issue-chip" }) and search_docs({ query: "issue chip" }).

Need help?

Stuck on Issue Chip, or found something off? We read every message.