A New issue dialog that keeps up with you: a large title, a rich description, a row of property pills, acceptance criteria, a draft kept as you type, Create more, and Cmd or Ctrl + Enter. The same fields come as a compact form for a popover.
On this page
- New issue
- Action items to issues
- Bug reports
- Feature requests
- Support escalations
Examples
In a popover: an action item to an issue
IssueComposerForm is the same fields without the dialog. Compact, it has a plain description, pills at 24px and no criteria; Enter in the title creates. Put it in a Popover from the row's Create action, and the row shows the new issue as a chip.
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- open / onOpenChange
boolean / (open) => void- The dialog. Closing with something typed asks first, unless the draft is kept.
- onCreate
(draft, { createMore }) => void|{ id }|Promise- Creates the issue: the title is trimmed and empty criteria are dropped. A promise shows the button busy, a rejection shows its message.
- value / onChange / defaultValue
IssueDraft / Partial<IssueDraft>- Default
empty - The draft, controlled, or where a fresh one starts (a status, the project).
- statuses / priorities
PillOption[]- Default
built in - The options of those pills. Default: Backlog to Canceled with rings, Urgent to No priority with bars.
- people / labels / projects
PillOption[] / string[] / PillOption[]- Assignees, known labels (new ones can be created), and the header's project picker.
- fields
("status" | "priority" | "assignee" | "labels" | "due")[]- Default
all - Which pills show, in order.
- criteria
boolean- Default
true - The acceptance criteria checklist.
- description
"rich"|"plain"|false- Default
"rich" - The rich editor (Markdown), a textarea, or none.
- draftKey
string- Keep the draft in localStorage under this key as you type and bring it back on open. Storage that refuses is ignored.
- createMore / defaultCreateMore / onCreateMoreChange
boolean- Default
false - The footer switch. keepOnCreateMore picks the fields kept (default status, priority, labels, project).
- mentions / onUploadImage
MentionOptions / (file, signal) => Promise<{ src }>- @ mentions and pasted or dropped images in the description.
- title / notice / now
string / ReactNode / Date- Default
"New issue" - The header's words, a note of your own in the footer, and today for the due date.
- IssueComposerForm
value, onChange, onSubmit, size, context, titleRef ...- The fields alone. size="compact" for a popover; context is a line under the title.
- CriteriaChecklist
{ value, onChange, legend? }- The checklist alone.
| Prop | Type | Default | Description |
|---|---|---|---|
| open / onOpenChange | boolean / (open) => void | - | The dialog. Closing with something typed asks first, unless the draft is kept. |
| onCreate | (draft, { createMore }) => void | { id } | Promise | - | Creates the issue: the title is trimmed and empty criteria are dropped. A promise shows the button busy, a rejection shows its message. |
| value / onChange / defaultValue | IssueDraft / Partial<IssueDraft> | empty | The draft, controlled, or where a fresh one starts (a status, the project). |
| statuses / priorities | PillOption[] | built in | The options of those pills. Default: Backlog to Canceled with rings, Urgent to No priority with bars. |
| people / labels / projects | PillOption[] / string[] / PillOption[] | - | Assignees, known labels (new ones can be created), and the header's project picker. |
| fields | ("status" | "priority" | "assignee" | "labels" | "due")[] | all | Which pills show, in order. |
| criteria | boolean | true | The acceptance criteria checklist. |
| description | "rich" | "plain" | false | "rich" | The rich editor (Markdown), a textarea, or none. |
| draftKey | string | - | Keep the draft in localStorage under this key as you type and bring it back on open. Storage that refuses is ignored. |
| createMore / defaultCreateMore / onCreateMoreChange | boolean | false | The footer switch. keepOnCreateMore picks the fields kept (default status, priority, labels, project). |
| mentions / onUploadImage | MentionOptions / (file, signal) => Promise<{ src }> | - | @ mentions and pasted or dropped images in the description. |
| title / notice / now | string / ReactNode / Date | "New issue" | The header's words, a note of your own in the footer, and today for the due date. |
| IssueComposerForm | value, onChange, onSubmit, size, context, titleRef ... | - | The fields alone. size="compact" for a popover; context is a line under the title. |
| CriteriaChecklist | { value, onChange, legend? } | - | The checklist alone. |
Accessibility
- The dialog is named by its header; the fields are a labelled group, the pills a group named Properties, and each criterion row is named Criterion N.
- Focus starts in the title. Escape inside a pill's menu closes only the menu; Escape in the dialog closes it, or asks first when something would be lost.
- The Create more note and a restored draft are announced politely; a failed create is an alert.
- The shortcut is shown beside the button, so the button's name stays Create issue.
What it handles
- 01Writes a new issue in one place: a large title, a rich description with Markdown out, one row of property pills, and acceptance criteria.
- 02Creates with Cmd or Ctrl + Enter from anywhere inside, without a stray line break in the description; Enter in the title moves on to the description.
- 03Keeps the draft in the browser as you type with draftKey, brings it back on the next open, and offers Start over.
- 04Create more keeps the dialog open with the status, priority, labels and project, and says which issue it just made.
- 05Asks before throwing away what was typed when there is no kept draft; shows a failed create without losing anything.
- 06Comes as a compact form too, for a popover that turns an action item or a comment into an issue.
States
- First render
- Nothing moves
- none
- Open and close
- The dialog fades in from 4px below, a bottom sheet on phones
- 180ms in, 120ms out, ease out
- Creating
- The button shows it is busy; the fields are read only
- until onCreate settles
- Create more
- The fields clear in place, focus goes back to the title
- none
- Reduced motion
- The dialog appears at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing moves | none |
| Open and close | The dialog fades in from 4px below, a bottom sheet on phones | 180ms in, 120ms out, ease out |
| Creating | The button shows it is busy; the fields are read only | until onCreate settles |
| Create more | The fields clear in place, focus goes back to the title | none |
| Reduced motion | The dialog appears at once | 0ms |
Works with
When to use
When to use
- A New issue dialog: title, rich description, property pills, acceptance criteria and Create more, with Cmd or Ctrl + Enter.
- Turning an action item or a comment into an issue from a small popover form.
When not to use
- Viewing or editing an issue that exists: use Task Detail.
- A board of issues by status: use Kanban Board.
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 Composer to my app and wire it to my own data.
- I need a New issue dialog: title, rich description, property pills, acceptance criteria and Create more, with Cmd or Ctrl + Enter. Set that up with the Knowns UI Issue Composer.
- Which Issue Composer props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "issue-composer" }) and search_docs({ query: "issue composer" }). Pro props, full examples and source come back once your license key is in the MCP config.