quick add
one field and its add button. a successful add clears the draft and returns focus; a failed add keeps the words ready to try again.
bunx --bun shadcn@latest add @mk/quick-addserves trisys, orbit, the public site.
example
type a task and press enter, or use add. leading and trailing spaces are trimmed; an empty draft cannot submit.
- review the chapter outline
- review the chapter outline
submission states
these are real forms. the pending example waits until you finish the add; its field can hold a newer draft meanwhile. the failed example succeeds on retry.
rest
empty draft, add disabled
ready
a nonblank draft enables add
focus
one inside edge on the field
pending
a second add is blocked
failed
the draft stays, the error names recovery
disabled
the field and add control stay disabled
rest
empty draft, add disabled
ready
a nonblank draft enables add
focus
one inside edge on the field
pending
a second add is blocked
failed
the draft stays, the error names recovery
disabled
the field and add control stay disabled
compact label
hide the visible label when the surrounding page gives enough context. the field still has its own name, and the submit word can match the task.
the label stays available to screen readers.
the label stays available to screen readers.