Close Button
fun CloseButton(scope: NutrientTabBarTabScope, modifier: Modifier = Modifier, painter: Painter = painterResource(R.drawable.pspdf__ic_close), contentDescription: String? = stringResource(R.string.pspdf__close), tint: Color = if (scope.isSelected) scope.colors.selectedIconColor else scope.colors.iconColor, size: Dp = CloseButtonSize)
The stock close button: an icon that closes the tab when tapped, with an unbounded ripple in its tint. Padded from the tab's end edge by NutrientTabBarDimensions.closeButtonPadding; add to that through modifier.
The bar sizes its tabs for a CloseButtonSize button plus that padding, so a much larger size or padding should come with a matching NutrientTabBarDimensions.tabMinWidth.
Parameters
scope
The scope the bar passed to the slot.
modifier
The Modifier for the button, applied outside its size and tap handling.
painter
The icon, pspdf__ic_close by default.
content Description
What accessibility services read for the button.
tint
The icon color, TabBarColors.selectedIconColor or TabBarColors.iconColor by default.
size
Width and height of the button, CloseButtonSize by default.