A list of read-only fields used to show information to the user for review.
review {
title = "Please review your transfer"
fields {
field {
label = "Recipient"
value = "Florence Jones"
}
field {
label = "Amount"
value = "$6550"
}
field {
label = "To be sent"
value = "July 21, 2024"
}
}
callToAction {
title = "Edit"
behavior = ActionBehavior.build {
action {
url = "/edit"
}
}
}
}When to use
- When the users attention is meant to be on the values, rather than the labels. For example, when the user is being asked to check a number of fields that they have previously entered.
When not to use
- When the primary action of the step is tied to an individual item, consider using a Decision Layout instead.
- When the content being displayed represents separate entities of the same category, consider using a List Layout instead.
- If the focus is on the labels rather than the values, consider using a List Layout instead.
| Property | Type | Required | Description |
|---|---|---|---|
analyticsId | String | No | An optional identifier to be used in analytics tracking. |
| No | A titled Action which can be performed by the user
| |
control | String | No | Specify a particular control to use to represent the layout. If the control is unknown, it will be ignored. |
fields | Array<ReviewLayout.Field> | Yes | The fields to be reviewed. |
margin | Size | No | The vertical margin to apply after this component. Defaults to md. |
| Array<String> | No | An optional list of identifiers used to configure renderers.
|
title | String | No | Title for the review block. |
type | String | Yes | It must be review. |
A single field in a Review Layout.
| Property | Type | Required | Description |
|---|---|---|---|
| No | Additional information to be displayed to the user, with optional interactivity.
| |
| String | No | An optional identifier to be used in analytics tracking.
|
| No | A titled Behavior, associated with a specific field, and which can be performed by the user
| |
| No | Provide additional help information to the user.
| |
| No | An icon to represent the field.
| |
| No | An image to represent the field.
| |
| No | An alert that will be displayed inline with the item.
| |
label | String | Yes | The user-facing label. |
| No | A media object (avatar, icon, image) which the client can use to represent this field.
| |
| String | No | The value of the field without any formatting applied. This can be used when you display a formatted value to the user, but want to provide an unformatted value to the client for other uses, for example when copying the value to the clipboard.
|
| String | No | An optional identifier to be used in custom renderers.
⚠️ Deprecated - Please use 'tags' instead |
| Array<String> | No | An optional list of identifiers used to configure renderers.
|
value | String | Yes | The user-facing value. |
The call to action configuration used by Review Layout or individual fields (Field). For example, it could be used to provide an edit action.
| Property | Type | Required | Description |
|---|---|---|---|
accessibilityDescription | String | No | A description of the call to action to be used by screen readers. |
| No | The Action which should be performed. ⚠️ Deprecated - Please use | |
| Yes | The Behavior that should be performed when user interacts with call to action.
| |
| No | The semantics of the call-to-action button. Defaults to neutral.
| |
title | String | Yes | A user-facing title. |
horizontal
Displays the field label and value inline.
horizontal-end-aligned
Displays the field label inline, with the value aligned with the end edge based on locale.
horizontal-start-aligned
Displays the field label inline, with the value aligned with the start edge based on locale.
vertical
Displays the field label and value vertically.
vertical-one-column
Displays fields vertically in a single column.
vertical-two-column
Displays fields vertically in two columns.