Package-level declarations

Types

Link copied to clipboard
class ClusterCardBadge(val text: String, val icon: Painter? = null, val appearance: BadgeAppearance = BadgeAppearance.Standard, val variant: BadgeVariant = BadgeVariant.Primary)

A badge to be displayed on a ClusterCard.

Link copied to clipboard
sealed interface ClusterCardSize

Defines the size of a ClusterCard.

Link copied to clipboard
class RelatedProducts(val first: Painter, val second: Painter, val third: Painter)

A set of related products to be displayed below a ClusterCard.

Functions

Link copied to clipboard
fun ClusterCard(title: String, image: Painter, size: ClusterCardSize, onClick: () -> Unit, modifier: Modifier = Modifier, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

This card creates consistent and efficient category groupings on screens while ensuring a unified look and feel. The cluster card offers two sizes: