OudsCard

fun OudsCard(modifier: Modifier = Modifier, style: OudsCardStyle = OudsCardDefaults.Style, enabled: Boolean = true, skeleton: OudsSkeleton? = LocalSkeleton.current, content: @Composable OudsCardScope.() -> Unit = { })

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

NameContent Container Card
Version1.0.0

Parameters

modifier

The Modifier to be applied to this card.

style

Style of the card among OudsCardStyle values.

enabled

Controls the enabled state of the card. When false, the OUDS components inside will be in disabled state.

skeleton

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.

content

The content of the OudsCard.


fun OudsCard(onClick: () -> Unit, modifier: Modifier = Modifier, style: OudsCardStyle = OudsCardDefaults.Style, enabled: Boolean = true, loader: OudsCardLoader? = null, skeleton: OudsSkeleton? = LocalSkeleton.current, interactionSource: MutableInteractionSource? = null, content: @Composable OudsCardScope.() -> Unit = { })

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

NameAction Container Card
Version1.0.0

Parameters

onClick

The action to perform when this card is clicked.

modifier

The Modifier to be applied to this card.

style

Style of the card among OudsCardStyle values.

enabled

Controls the enabled state of the card. When false, the OUDS components inside will be in disabled state.

loader

An optional loading progress indicator displayed in place of the card's content to indicate an ongoing operation.

skeleton

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.

interactionSource

An optional hoisted MutableInteractionSource for observing and emitting Interactions for this card. Note that if null is provided, interactions will still happen internally.

content

The content of the OudsCard.