Components
Play with the component with our playground.
Anatomy
Name | Description |
---|
| Fluid (100% bounded by parent element) - Fluid (content). |
| This arrow indicates there is a navigation. |
| It can be any element within a carousel. Number of items is variable. |
| This arrow indicates there is a navigation. |
| It shows the available items. |
States
DefaultA default state communicates an interactive component or element.
Desktop
HoverA hover state communicates when a user has placed a cursor above an interactive element.
Tablet and mobile
TapA tap state communicates when a user has push an interactive element.
Desktop, tablet and mobile
PressedA pressed state communicates a user tap.
Keyboard focusA keyboard focus state communicates when a user has highlighted an element, using an input method such as a keyboard or voice.
When focus is in one of the arrows, user can navigate with the return key.
Options
DefaultNumber of items can change.
Single element carouselIt will show one item in each view.
Multiple elements carouselThe content can grow several lines vertically
Center modeIt can have the central element highlighted. It can be bigger to indicate that it is the selected one.
Variable heightCarousel can have different elements that help to understand better the item and the height will vary and chevrons will be center with the content.
Variable width (fill)It can have different elements (1 to 3) with different width without activate the carusel. It can be align center or left.
Minimum number of items visibles in first level (left) If the number of items are the same or less than the first level, the carousel is not displayed (arrows).
Minimum number of items visibles in first level (center) If the number of items are the same or less than the first level, the carousel is not displayed (arrows).
Minimum case: Left alignedIf the screen (view) has a resolution big enought to let show all the carousel elements this is a minimum case, on the oppsosite side if pagination is shown means there're hidden elements and it's not a minimum case.Same behavior will be applied when some of the elements have different width.
Minimum case: Center alignedIf the screen (view) has a resolution big enought to let show all the carousel elements this is a minimum case, on the oppsosite side if pagination is shown means there're hidden elements and it's not a minimum case.Same behavior will be applied when some of the elements have different width.
Layout
Number of elements in a viewIt can change depending the space available.
Fully responsiveCarousel will scales with its parent container.
Multiple items. Main featuresThe items are distributed evenly within the container, always leaving a space between them of 8px.
Behaviours
Carousel navigationTo navegate between items user can:Horizontal scroll to move between itemsWith the navigation arrows
Carousel navigation by itemsThis option allows you to navigate by items. For example: at the first level we see 3 items from 1 to 3. If we click the right arrow and it shows us the items from 2 to 4. The page control changes position from the first to the second bullet.
Carousel navigation by viewsThis option allows you to navigate by views. For example: At the first level we see three items from 1 to 3. If we click the right arrow, it shows the items from 4 to 6. The page control changes position, from the first to the second.
Linear interactionWhen user is in the first page, the left arrow will be disabled. When user is in the last page, the right arrow will be disabled.
Circular interactionIn circular carousel, both arrows will be active and after the las view, first page will be shown.
Keyboard interactions
- Tap the arrow key on the keyboard
This carousel is controlled by clicking the thumb, then using arrow keys to move it.
- Tap the tab key on the keyboard
This carousel is controlled by using the tab key to select the thumb of the desired item of the carousel, then using arrow keys to move it.
Do's and dont's
Delete the arrows, in the linear navigation on the first page, it will be disabled.
Item height cannot be different.
In the center mode, selected item can have different style than the others.
Change page control dot color.
Number of elements will vary depending on the space available. In the circle picture it will occupy the space available without changing the items width always keeping a minimum of 8px padding between them.
Arrows will be shown only in one part of the carousel, integrated in the carousel or pageControl, never in both of them.