androidx.compose.material3.carousel
CarouselItemScope
Sealed interface
No hand-written docs yet.
Receiver scope for Carousel item content.
sealed interface CarouselItemScope
Used by
Parameters that take a CarouselItemScope.
HorizontalCenteredHeroCarousel(content)HorizontalMultiBrowseCarousel(content)HorizontalUncontainedCarousel(content)
Properties
carouselItemDrawInfoSince 1.9
val carouselItemDrawInfo: CarouselItemDrawInfo
Information regarding the carousel item, such as its minimum and maximum size.
Functions
maskClip
@Composable
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.
maskBorder
@Composable
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.
rememberMaskShape
@Composable
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.
Library docs
Receiver scope for Carousel item content.