ScrollToFirstUnreadButtonParams

constructor(visible: Boolean, unreadCount: Int, onClick: () -> Unit, onDismiss: () -> Unit, modifier: Modifier = Modifier)

Parameters

visible

Whether the pill is visible.

unreadCount

The number of unread messages to display in the pill label.

onClick

Action invoked when the pill body is clicked. Implementations should scroll the list to the first unread message.

onDismiss

Action invoked when the close (X) affordance is clicked. Implementations should hide the pill without scrolling.

modifier

Modifier for styling.