Summary List
The summary list component displays information in a structured key-value format, making it ideal for presenting form summaries, application details, or any data that needs to be reviewed. It supports headers, action buttons, and custom styling.
Government Subsidy Application
| Application ID | SUB12345 | |
|---|---|---|
| Applicant Name | Lee Ming Wei | |
| Submission Date | 15/10/2024 17:35:00 | |
| Subsidy Type | Petrol Subsidy | |
| Status | Pending | |
| Document Submitted | Proof Of Income ID Copy | |
| Expected Response Date | 23/03/2023 17:35:00 |
Usage
Main Wrapper: SummaryList
The SummaryList is the primary container for presenting a summary of items in a structured and visually consistent format. It serves as the parent component, wrapping all subcomponents.
SummaryListHeaderSummaryListBody
1. SummaryListHeader
The SummaryListHeader is used to display the title of the summary list.
Example:
Government Subsidy Application
2. SummaryListBody
The SummaryListBody is a wrapper for the tabular data within the SummaryList. Main wrapper for multiple or single SummaryListRow.
Example:
| Application ID | SUB12345 |
|---|---|
| Applicant Name | Lee Ming Wei |
2.1 SummaryListRow
The SummaryListRow defines individual rows within the table.
Example:
| Application ID | SUB12345 |
|---|
2.1.1 SummaryListTerm
The SummaryListTerm is used to represent the term or label in the row.
Example:
| Application ID |
|---|
2.1.2 SummaryListDetail
The SummaryListDetail displays the detailed information corresponding to the term.
Example:
| SUB12345 |
2.1.3 SummaryListAction
The SummaryListAction is for adding actions (e.g., buttons or links) associated with a row.
Example:
2.1.4 SummaryListAddition
The SummaryListAddition provides extra information or actions in the row.
Example:
| Application ID | SUB12345 | Additional Info |
|---|
Props
SummaryList
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListHeader
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListBody
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListRow
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListTerm
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListDetail
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListAction
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |
SummaryListAddition
| Prop | Type | Default |
|---|---|---|
className | string | - |
children | ReactNode | - |