App Carousel
A generic carousel component that supports both paging (one item at a time) and standard horizontal scrolling (list of items). This version accepts a StringResource for the title.
Parameters
The total number of items in the carousel.
The modifier to be applied to the carousel container.
The StringResource title displayed above the carousel.
If true, uses a HorizontalPager for snapping behavior. If false, uses a LazyRow.
The spacing between items.
The padding to be applied around the content.
The state for the pager (only used if isPager is true).
If true, shows a page indicator (only used if isPager is true).
The composable content for each item.
A generic carousel component that supports both paging (one item at a time) and standard horizontal scrolling (list of items). This version accepts an optional raw String for the title.
Parameters
The total number of items in the carousel.
The modifier to be applied to the carousel container.
Optional title displayed above the carousel.
If true, uses a HorizontalPager for snapping behavior. If false, uses a LazyRow.
The spacing between items.
The padding to be applied around the content.
The state for the pager (only used if isPager is true).
If true, shows a page indicator (only used if isPager is true).
The composable content for each item.