Skip to content
PreviewPick a choice or use Other to write your own. Otherwise tells you what happens if you don’t answer.
Scout

Ship the release tonight, or wait for review?

Otherwise Scout waits for review and ships at 18:00.

Preview

Choose a release window

  • A Ship tonight

    Release at 18:00 with overnight support.

  • B Ship tomorrow

    Release at 09:00 after review signs off.

Ask

kind
"choice" | "task" | "approval"
Default: "choice"
What it asks of the person. A task draws Done, Not doing it and Hold; an approval Allow and Deny, and nothing else.
title
string
question
string
body
ReactNode
comparison
DecisionComparison
options
readonly DecisionOption[]
Default: []
later
boolean
Default: false
choices
readonly string[]
Default: []
A choice's answers, in the asker's order, of equal weight. Up to four labels of up to 60 characters (Crew's bound). None: the field alone.
multiple
boolean
Default: false
A choice of at least two that takes several: its answers are boxes, and Answer, off until one is ticked, gives every ticked one at once ({ choices }).
offers
readonly string[]
Default: []
A task's offers, in the asker's order: what its asker would do instead, such as "Open the payment page for me". An offer, like Hold and the person's own words, is told to the asker through onAnswer and leaves the ask open; the product keeps it open.
other
boolean
Default: false
"Other" after a choice's answers opens one field for the person's own words. A choice with none always has the field; a task always offers Other, and an approval never has one.
otherwise
string
What the asker does if nobody answers, in the asker's words: the line after "Otherwise". Every ask has one; leave it out only where the host already shows it (a list row's sub).
askedOf
ReactNode
The person it is put to: their name, said as "Asked of" to anyone else and beside the answer. Leave it out where the message already says it over its words (ReplyQuote asked), so it is said once.
you
boolean
Default: false
The reader is that person: the choices press and the field takes words. Anyone else reads the choices as plain words, and "Asked of" names the person.
state
"open" | "waiting" | "held" | "answered" | "withdrawn" | "gone-on"
Default: "open"
held: a task put off, which says On hold and still takes an answer.
answeredIn
"anywhere" | "device" | "source"
Default: "anywhere"
Where it can be answered. device and source draw no answers and no item: the place line, the machine where one is given, and one press that opens the place.
device
ReactNode
With answeredIn="device": the machine the answer waits on ("Ada's MacBook Pro").
onOpen
() => void
Opens the place, for the person asked. With answeredIn="device" or "source", the one press the ask draws; a row that is the press itself leaves it out.
openLabel
string
Default: "Open"
The press's words. name the place where it is known ("Open Keep").
answer
{ readonly text: string; readonly at: ReactNode }
With answered: what the person gave, and when, in the kit's clock (fmtTime, fmtDayTime).
onAnswer
(reply: AskReply) => void | Promise<unknown>
A choice pressed or words sent. A promise keeps the pressed button busy until it settles. Words sent leave the field once they are told: when the call returns, or when its promise fulfils, with no error standing then; a promise that rejects, or an error set, keeps them.
told
readonly AskTold[]
Default: []
On an open ask: what the person has told the asker without ending it (their words, an offer), oldest first, a line each that its label leads ("You said"). The words keep their lines.
seats
AskSeats
An ask about seats: its lines and the way to review them, in place of the choices and the field.
error
ReactNode
The answer did not land: what happened and what to do, under the choices (announced).
rootStyle
RootStyle
Typed StyleX override: where the ask sits.

Rest props go to <div> props.

State machine

PreviewChoose a release window or write an answer.

Choose a release window