Components
Result List
High-density expandable search results, application tracking cards, and grievance list rows with metadata pills, status tags, and detail grids
The UX4G Result List (and its companion alias Ux4gResultRow) provides an expandable list item component designed for government service portals, application tracking dashboards, search listings, and grievance monitoring systems.
Key Capabilities
- Expandable Accordion Behavior: Smooth animated expansion (
AnimatedVisibility) revealing structured 2-column (or custom) metadata details grids. - Status Tags & Pill Segments: Integrates with
Ux4gTag(e.g. Approved, Pending, Rejected) andUx4gUnifiedPillTagmetadata segments. - Action Buttons: Built-in outline CTA button with optional leading icons (e.g., "View Details", "Download", "Track Status").
- Customizable Layout: Configurable detail columns, custom trailing icons, title badges, and bottom dividers.
Import from:
import com.ux4g.designsystemv1.components.resultlist.*Interactive Preview
Collapsed & Expanded States
The preview below illustrates both the compact Collapsed row state and the detailed Expanded state showing the metadata grid and active chevron indicator.
Ux4gResultListJetpack Compose
Collapsed State

Expanded State

Complete Kotlin Implementation
1. Application Tracking Card with Status Tag
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.ux4g.designsystemv1.components.card.Ux4gCard
import com.ux4g.designsystemv1.components.resultlist.*
import com.ux4g.designsystemv1.components.tag.Ux4gTagColor
import com.ux4g.designsystemv1.foundation.Ux4gColors
@Composable
fun ApplicationTrackingExample() {
Ux4gCard(
modifier = Modifier.fillMaxWidth(),
cornerRadius = 12.dp,
borderColor = Ux4gColors.neutral900.copy(alpha = 0.12f),
borderWidth = 1.dp
) {
Ux4gResultList(
title = "Pradhan Mantri Awas Yojana (Urban)",
statusTag = "Approved",
tagColorScheme = Ux4gTagColor.Success,
actionButtonText = "View Details",
onActionPressed = { /* Navigate to details */ },
details = listOf(
Ux4gResultDetail(label = "Applicant", value = "Ravi Kumar"),
Ux4gResultDetail(label = "Application No", value = "PMAY-2025-09821"),
Ux4gResultDetail(label = "Sanctioned Amount", value = "₹ 2,67,000", isBold = true),
Ux4gResultDetail(label = "Disbursement Status", value = "Stage 2 Credited", valueColor = Ux4gColors.green600)
),
showBottomDivider = false
)
}
}2. Document Download Row with Trailing Icon
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.ux4g.designsystemv1.components.resultlist.*
import com.ux4g.designsystemv1.foundation.Ux4gColors
import com.ux4g.designsystemv1.foundation.Ux4gIconComponent
import com.ux4g.designsystemv1.foundation.Ux4gIcons
@Composable
fun VerifiedCertificateRow() {
Ux4gResultRow(
title = "Income Certificate",
titleTrailing = {
Ux4gIconComponent(
icon = Ux4gIcons.success_circle,
contentDescription = "Verified Certificate",
tint = Ux4gColors.green600,
modifier = Modifier.size(18.dp)
)
},
actionButtonText = "Download",
actionButtonIcon = Ux4gIcons.upload,
onActionPressed = { /* Initiate download */ },
details = listOf(
Ux4gResultDetail(label = "Reference Number", value = "INC-2026-MH-04127"),
Ux4gResultDetail(label = "Issued Date", value = "05 Apr 2026"),
Ux4gResultDetail(label = "Valid Till", value = "05 Apr 2027"),
Ux4gResultDetail(label = "Issuing Authority", value = "Tehsildar Office, Pune")
)
)
}Parameters & API Reference
1. Ux4gResultList / Ux4gResultRow Composable
| Prop | Type | Description | Default |
|---|---|---|---|
title * | String | Primary heading title of the result row item. | — |
modifier | Modifier | Compose modifier applied to the outer container. | Modifier |
titleTrailing | (@Composable () -> Unit)? | Optional composable trailing the title (e.g. verified icon badge). | null |
statusTag | String? | Optional status text displayed inside a rectangular tonal Ux4gTag. | null |
tagColorScheme | Ux4gTagColor | Color scheme for the status tag (Neutral, Success, Warning, Error, Primary). | Ux4gTagColor.Neutral |
metadataSegments | List<Ux4gPillSegment>? | List of metadata pill segments displayed in a unified pill tag. | null |
customMetadata | (@Composable () -> Unit)? | Custom composable replacement for metadata tags. | null |
actionButtonText | String? | Label text for the outline action button on the right. | null |
actionLeading | (@Composable () -> Unit)? | Optional composable rendered immediately before the action button. | null |
onActionPressed | (() -> Unit)? | Callback invoked when the action button is clicked. | null |
actionButtonIcon | Ux4gIcon? | Optional leading icon rendered inside the action button. | null |
actionButtonColor | Color? | Custom color override for the action button border and content. | null |
details | List<Ux4gResultDetail> | List of detail key-value items rendered in a grid when expanded. | emptyList() |
expandedChild | (@Composable () -> Unit)? | Custom composable placed below the details grid when expanded. | null |
detailsColumns | Int | Number of columns for laying out the details grid. | 2 |
initialExpanded | Boolean | Whether the item starts expanded by default. | false |
onToggle | ((Boolean) -> Unit)? | Callback triggered when the expanded/collapsed state changes. | null |
showBottomDivider | Boolean | Whether to render a horizontal divider below the row. | true |
contentPadding | PaddingValues | Inner padding for the header and expanded content. | PaddingValues(16.dp) |
colors | Ux4gResultListColors | Color configuration for titles, labels, values, and expand arrows. | Ux4gResultListDefaults.colors() |
2. Ux4gResultDetail Data Model
Represents a single metadata cell displayed within the expanded grid.
| Field | Type | Description | Default |
|---|---|---|---|
label * | String | Descriptor title (e.g., "Application No", "Sanctioned Date"). | — |
value * | String | Value string displayed beneath the label. | — |
icon | Ux4gIcon? | Optional icon preceding the value string. | null |
valueColor | Color? | Custom text and icon color override for this value. | null |
isBold | Boolean | Whether the value text is rendered with bold typography. | false |
customValueWidget | (@Composable () -> Unit)? | Custom composable override for the value content. | null |
3. Ux4gPillSegment Data Model
Used inside metadataSegments to build composite pill badges.
| Field | Type | Description | Default |
|---|---|---|---|
text * | String | Text content of the individual metadata segment (e.g. "2 days remaining"). | — |
textColor | Color? | Custom text color override for this segment. | null |
bold | Boolean | Renders segment text with bold font weight when true. | false |
icon | Ux4gIcon? | Optional leading icon preceding the segment text. | null |
4. Ux4gResultListColors Reference Guide
| Color Token | Default Light Color | Description |
|---|---|---|
titleColor | Ux4gColors.neutral900 | Color of the primary title text |
onSurface | Ux4gColors.neutral900 | Foreground color for default elements and action button |
surface | Ux4gColors.white | Background surface color |
dividerColor | Ux4gColors.neutral900 (10% alpha) | Color for bottom separator line |
labelColor | Ux4gColors.neutral900 (50% alpha) | Color for metadata descriptor labels |
valueColor | Ux4gColors.neutral900 | Default color for metadata values |
expandIconColor | Ux4gColors.neutral900 (80% alpha) | Color for the rotating chevron expand/collapse arrow |