Usage
loading, and show the result with Alert.ConfirmationButton, which renders Button.
| Look | Props |
|---|---|
| Primary | intent={ButtonIntent.Accent} and variant={ButtonVariant.Solid} |
| Neutral (default) | none |
| Quiet | variant={ButtonVariant.Ghost} |
icon for a decorative glyph before the label. A choice's onConfirm is its side effect. It runs once, after the group has acknowledged, however many times the choice is activated.
acknowledgementLabel is the text a choice falls back to, and what a group that starts acknowledged shows. A choice's acknowledgeLabel replaces it for that choice, so one juncture can resolve to "Sent for review" or "Kept as draft". acknowledgementIcon replaces the check.
The acknowledgement takes the choices' place and their height, so the swap moves nothing. It fades in and rises a few pixels; under reduced motion only the fade remains.
Without acknowledged the group acknowledges itself on the first activated choice. With it, the parent decides: set it to true from onAcknowledge to show the acknowledgement, and back to false to offer the choices again.
While acknowledged is held at false, the first activation locks the choices until acknowledged changes. To retry after a failure, set it to true and then back to false.
Choices wrap onto further lines in a narrow container.