Skip to content
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

About the business

Name of the business
Bunyi Studio
Kind of business
Recording studio
Address
Jl. Kemang Raya 12
Jakarta Selatan 12730

About you

Full name
Ana Putri
Phone
+62 812 3456 7890
Email
Not given

I confirm that the answers are true. A false answer can end the permit.

  • groups is the list of groups. Each group has a title and rows. Each row has a key, a label, and a value.
  • 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 emits change with the key. Screen readers hear the label too, as in "Change Address".
  • declaration adds 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 labels or 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

NameTypeDefaultDescription
groups*BlessAnswerGroup[]—
declarationstring—what the person agrees to before they send, for example that the answers are true
labelsPartial<{ change: string; empty: string; agree: string; send: string; mustAgree: string; }>—

Events

NamePayloadDescription
submit[]
change[key: string]

Released under the MIT License. Character names and artwork belong to their owners.