Skip to content
Binary UIKit reference Stable

Recommendation

Agent proposal with rationale, explained confidence, evidence, alternatives, and explicit accept or reject actions.

Use Recommendation for a proposal that needs a decision. Explain the evidence or criterion behind confidence. Keep evidence and alternatives as divided rows. Place confidence beside the actions. Set `actionable` only when accept and reject are valid. Use `pendingAction` to identify the pending decision. The deprecated `busy` prop represents only a pending accept action.

Interactive example

Loading interactive example

API

MemberTypeKindRequiredDefault
acceptLabelstringpropYes
announcementstringpropNoundefined
busybooleanpropNofalse
disabledbooleanpropNofalse
headingLevel1 | 2 | 3 | 4 | 5 | 6propNo2
onAccept(recommendationId: string) => voidcallbackYes
onReject(recommendationId: string) => voidcallbackYes
pendingActionRecommendationPendingActionpropNoundefined
recommendationRecommendationDatapropYes
rejectLabelstringpropYes

Examples

Source

Loading source