Skip to content

Choices card

The choices card shows the question an offer_choices call asks, with two to four answers the user picks with one click. The pick is the call’s answer.

The sheet panel on Orders. A card asks Which orders should I show? with To ship, Shipped, Cancelled and All.The sheet panel on Orders. A card asks Which orders should I show? with To ship, Shipped, Cancelled and All.

AssistedProvider lends offer_choices on every page. Add the cards’ styles to your global CSS:

Terminal window
npx shadcn@latest add https://super-assist.dogar.biz/r/assisted-cards.json

offer_choices is described as:

Ask the user a question with two to four short answers they pick with one click, and answer with their pick.

It takes question, a string, and options, two to four strings. The call waits for the pick.

The same card after the user picked To ship: To ship is filled and every button is disabled.The same card after the user picked To ship: To ship is filled and every button is disabled.

The pick answers the call with The user picked "To ship". The card stays in the thread with the pick filled and its buttons disabled.

None. The package renders the card in place of the offer_choices call. Style it through [data-assisted-choices] and [data-picked]: the registry reference lists the rules and Model context the card’s DOM.