OudsCard
A Content Container Card groups related information within a single surface. The card itself is not interactive, but it can contain independently interactive elements, such as buttons and links. Its content is customizable through a slot, allowing designers to adapt the internal layout without changing the behavior of the container.
Design
| Name | Card |
| Guidelines | unified-design-system.orange.com |
| Version | 1.0.0 |
Parameters
The Modifier to be applied to this card.
Style of the card among OudsCardStyle values.
Controls the enabled state of the card. When false, the OUDS components inside will be in disabled state.
A placeholder state of the component used when the content is not yet available (while loading). The component shows the correct visual structure but with placeholder elements (grey or shimmering blocks) instead of actual content. Can be set directly or inherited from OudsSkeletonProvider. See OudsSkeleton class documentation for all approaches.
The content of the OudsCard.
Samples
val cardModifier = Modifier.width(350.dp)
Column(verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.small)) {
OudsCard(
modifier = cardModifier,
style = OudsCardStyle.Filled()
) {
Column(
modifier = Modifier.padding(OudsTheme.spaces.fixed.medium),
verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.small)
) {
OudsHeadingText(text = "Opening Hours")
OudsBodyText(text = "Monday to Friday: 9:00 AM - 6:00 PM")
OudsBodyText(text = "Saturday: 10:00 AM - 4:00 PM")
OudsBodyText(text = "Sunday: Closed")
}
}
OudsCard(
modifier = cardModifier,
style = OudsCardStyle.Elevated()
) {
Column(
modifier = Modifier.padding(OudsTheme.spaces.fixed.medium),
verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.extraSmall)
) {
OudsHeadingText(text = "Practical Tips")
OudsBodyText(text = "• Arrive 15 minutes early")
OudsBodyText(text = "• Bring a valid ID")
OudsBodyText(text = "• Check your email for updates")
}
}
OudsCard(
modifier = cardModifier,
style = OudsCardStyle.Outlined
) {
Column(
modifier = Modifier.padding(OudsTheme.spaces.fixed.medium),
verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.small)
) {
OudsHeadingText(text = "Contact Support")
OudsBodyText(text = "Phone: +33 1 23 45 67 89")
OudsBodyText(text = "Email: support@example.com")
}
}
}OudsCard(
style = OudsCardStyle.Filled(divider = true)
) {
Column(
modifier = Modifier.padding(OudsTheme.spaces.fixed.medium),
verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.medium)
) {
OudsHeadingText(text = "Premium Headphones")
OudsBodyText(text = "High-quality wireless headphones with noise cancellation and 30-hour battery life.")
Row(
modifier = Modifier.padding(top = OudsTheme.spaces.fixed.small),
horizontalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.small)
) {
OudsTag(label = "Free shipping", status = OudsTagStatus.Positive(), size = OudsTagSize.Small)
OudsTag(label = "24h delivery", status = OudsTagStatus.Info(), size = OudsTagSize.Small)
}
OudsLabelText(
text = "In stock: 15 units",
size = OudsLabelTextSize.Medium,
weight = OudsTextWeight.Strong
)
}
}An Action card is an interactive surface that groups related content around one primary action or navigation. The available card surface acts as the primary interaction target. When supported, the card may also contain independent secondary actions. Each action must remain accessible and behave independently. Unlike the Card component, the Action card always provides a primary interaction.
Design
| Name | Action Card |
| Guidelines | unified-design-system.orange.com |
| Version | 1.0.0 |
Parameters
The action to perform when this card is clicked.
The Modifier to be applied to this card.
Style of the card among OudsCardStyle values.
Controls the enabled state of the card. When false, the OUDS components inside will be in disabled state.
An optional loading progress indicator displayed in place of the card's content to indicate an ongoing operation.
A placeholder state of the component used when the content is not yet available (while loading). The component shows the correct visual structure but with placeholder elements (grey or shimmering blocks) instead of actual content. Can be set directly or inherited from OudsSkeletonProvider. See OudsSkeleton class documentation for all approaches.
An optional hoisted MutableInteractionSource for observing and emitting Interactions for this card. Note that if null is provided, interactions will still happen internally.
The content of the OudsCard.
Samples
OudsCard(
onClick = { /* Add to cart */ },
style = OudsCardStyle.Filled()
) {
Column(
modifier = Modifier.padding(OudsTheme.spaces.fixed.medium),
verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.medium)
) {
Column(
verticalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.threeExtraSmall)
) {
OudsHeadingText(text = "Wireless Speaker")
OudsBodyText(text = "Portable Bluetooth speaker with premium sound quality")
}
Row(
modifier = Modifier.padding(top = OudsTheme.spaces.fixed.small),
horizontalArrangement = Arrangement.spacedBy(OudsTheme.spaces.fixed.small)
) {
OudsTag(label = "Best seller", status = OudsTagStatus.Warning(), size = OudsTagSize.Small)
OudsTag(label = "In stock", status = OudsTagStatus.Positive(), size = OudsTagSize.Small)
}
Row(
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.padding(top = OudsTheme.spaces.fixed.small)
) {
OudsLabelText(
modifier = Modifier.weight(1f),
text = "€129.99",
size = OudsLabelTextSize.Large,
weight = OudsTextWeight.Strong
)
OudsButton(
label = "Add to Cart",
appearance = OudsButtonAppearance.Strong,
onClick = {}
)
}
}
}