Package-level declarations

Types

Link copied to clipboard
data class CardBadge(val text: String, val color: Color)

A badge to be displayed on a card.

Link copied to clipboard
interface CardInfo

Interface for information about a card to be displayed in a list.

Link copied to clipboard
class VerticalCardListState(val scrollState: ScrollState)

State object for VerticalCardList.

Functions

Link copied to clipboard
fun CardBadges(badges: List<CardBadge>, elevation: Dp = 8.dp, modifier: Modifier = Modifier)

Renders a list of CardBadges as pill-shaped rectangles in the top-right corner.

Link copied to clipboard
fun CardCarousel(modifier: Modifier = Modifier, cardInfos: List<CardInfo>, initialCardInfo: CardInfo? = null, allowReordering: Boolean = true, onCardClicked: (CardInfo) -> Unit = {}, onCardFocused: (CardInfo) -> Unit = {}, onCardReordered: (cardInfo: CardInfo, oldIndex: Int, newIndex: Int) -> Unit = { _, _, _ -> }, selectedCardInfo: @Composable (cardInfo: CardInfo?, index: Int, total: Int) -> Unit = { _, _, _ -> }, emptyCardContent: @Composable () -> Unit = { })

A horizontal carousel composable that displays a collection of cards.

Link copied to clipboard
fun InfoCard(modifier: Modifier = Modifier, content: @Composable () -> Unit)

A composable which shows a card with information.

Link copied to clipboard

Creates and remembers a VerticalCardListState.

Link copied to clipboard
fun VerticalCardList(modifier: Modifier = Modifier, cardInfos: List<CardInfo>, focusedCard: CardInfo?, unfocusedVisiblePercent: Int = 25, allowCardReordering: Boolean = true, showStackWhileFocused: Boolean = true, cardMaxHeight: Dp = Dp.Unspecified, state: VerticalCardListState = rememberVerticalCardListState(), showCardInfo: @Composable (CardInfo) -> Unit = {}, emptyContent: @Composable () -> Unit = { }, onCardReordered: (cardInfo: CardInfo, newPosition: Int) -> Unit = { _, _ -> }, onCardFocused: (cardInfo: CardInfo) -> Unit = {}, onCardFocusedTapped: (cardInfo: CardInfo) -> Unit = {}, onCardFocusedStackTapped: (cardInfo: CardInfo) -> Unit = {})

A vertically scrolling list of cards that mimics a physical wallet experience.

Link copied to clipboard
fun WarningCard(modifier: Modifier = Modifier, content: @Composable () -> Unit)

A composable which shows a card with a warning.