The carousel component typically has a container element that holds all the slides and defines the overall layout and dimension of the component.

TypeResource
DesignFigma
WebMobile Storybook
CodeGitlab

Carousel preview

Usage

import id.co.biofarma.binduiandroid.components.carousel.Carousel
Carousel(
    id = "carouselPreview",
    size = "lg",
    radius = "none",
    mode = "light",
    items = List(12) { index ->
        {
            androidx.compose.material3.Text(
                text = "PLACEHOLDER: $index",
                color = PrimitiveColors.InnovationBlue_700,
                style = Typography.Overline.Small
            )
        }
    },
    navigation = "true",
    indicator = "true",
)

Examples

Size

Use size for change the size of carousel: sm, md, lg

Carousel preview 2


Radius

Use radius for change the border radius of carousel: none, sm, md

Carousel preview 3


Mode

Use mode for change the color mode of carousel: light or dark

Carousel preview 4


Props

PropsRequiredDefaultTypedescription
idtrue-stringUse id for set the id of carousel component.
sizefalselgsm md lgUse size for change size of carousel.
radiusfalsenonenone sm mdUse radius for change corner radius of carousel.
navigationfalsetruebooleanUse navigation for toggle show or hide navigation.
indicatorfalsetruebooleanUse indicator for toggle show or hide indicator.
modefalselightlight darkUse mode for change color mode light or dark
icontrue-imagevectorFor showing the slider icon: Icons.Filled.KeyboardArrowLeft and Icons.Filled.KeyboardArrowRight
BIND © Biofarma Innovate Next-level Design .