Running: the confirm says so and Cancel is withdrawn
<div data-mount="pending"></div>
API reference
InlineConfirm
Prop
Type
Required
Does
label
ReactNode
Yes
The first button's words ("Remove member"). Name the thing when the row does not.
labelDetail
string
Words only a screen reader hears after the label, naming what it acts on (" Alex Rivera").
question
ReactNode
Yes
The question in place of the button ("Remove Alex Rivera?").
confirmLabel
ReactNode
Yes
The second step's button ("Yes, remove member"): the action itself.
cancelLabel
ReactNode
openHref
string
Yes
With no script the first step is a link to this address (the page with the question open, "?confirm=<id>"), and Cancel a link to closeHref.
closeHref
string
Yes
defaultOpen
boolean
Open from the start: the page was asked for at openHref.
pending
boolean
The action is running: the confirm says pendingLabel and Cancel is withdrawn.
pendingLabel
ReactNode
tone
"danger" | "default"
danger (default) for an action that loses something; default for one that does not.
size
"sm" | "default"
form
FormComponent | "form"
The form element (React Router's Form, or a read-only guard); default a plain <form>.
method
"post" | "get"
action
string
children
ReactNode
The hidden inputs that name the action ("_action", "memberId").
Parts and data attributes
Class
Is
.cap-inline-confirm
the root
.cap-inline-confirm-actions
a part
.cap-inline-confirm-question
a part
Accessibility
Key
Does
Enter or Space on the first button
Opens the question; focus on Cancel
Enter on Cancel
Closes it; focus back on the first button
Enter on the confirm
Sends the form
The open form is named by its question (aria-labelledby). Screen readers: no manual NVDA or VoiceOver run, by decision (2026-11-07); the automated browser checks and a front-end review stand in. Automated: see the site's Tests page.