Calm motion: animations on this site only fade, with no movement
Check answers
The answers of a form in groups with a change link for each, and a statement to agree to before you send
Lets a person read all their answers once more before they send a long form. It is the last page of a service, after a saved form or a set of questions.
Basic
groupsis the list of groups. Each group has atitleandrows. Each row has akey, alabel, and avalue.- A value that is a list shows one item on each line. An empty value says "Not given".
- Each row has a change action. If the row has an
href, it is a link. If not, it is a button that emitschangewith the key. Screen readers hear the label too, as in "Change Address". declarationadds a statement and a check box. If the person sends without the check, an error explains it, and the form does not send.- "Accept and send" emits
submit. - Change the words with
labelsor a label pack. The API table lists the keys.
The page follows the "Check answers" pattern of the GOV.UK Design System.
Usage
ts
import { BlessCheckAnswers } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
groups* | BlessAnswerGroup[] | — | |
declaration | string | — | what the person agrees to before they send, for example that the answers are true |
labels | Partial<{ change: string; empty: string; agree: string; send: string; mustAgree: string; }> | — |
Events
| Name | Payload | Description |
|---|---|---|
submit | [] | |
change | [key: string] |