CarouselItemScope

sealed interface CarouselItemScope

Receiver scope for Carousel item content.

Properties

Link copied to clipboard

Information regarding the carousel item, such as its minimum and maximum size.

Functions

Link copied to clipboard
@Composable
abstract fun Modifier.maskBorder(border: BorderStroke, shape: Shape): Modifier

Draw a border on the composable using the given shape, taking into account the item's size in the cross axis and mask in the main axis.

Link copied to clipboard
@Composable
abstract fun Modifier.maskClip(shape: Shape): Modifier

Clips the composable to the given shape, taking into account the item's size in the cross axis and mask in the main axis.

Link copied to clipboard
@Composable
abstract fun rememberMaskShape(shape: Shape): GenericShape

Converts and remembers shape into a GenericShape that uses the intersection of the carousel item's mask Rect and Size as the final shape's bounds.