Carousel
A carousel with motion and swipe built on top of Embla.
Default
The standard carousel component.
1
2
3
4
5
carousel-example-default.ts
Orientation
Use the orientation input to set the carousel to vertical.
1
2
3
4
5
carousel-example-orientation.ts
Sizes
Carousels support different sizes through the slides inside them.
1
2
3
4
5
carousel-example-sizes.ts
Slide Count
Display the current slide and total count using hlm-carousel-slide-display.
1
2
3
4
5
carousel-example-slide-count.ts
Autoplay with Images
Automatically rotate through slides using the autoplay plugin and display images.
carousel-example-autoplay.ts
Installation & Usage
Installation
Imports
Basic Skeleton
API Reference
Brain API
Core functionality and state management for the carousel.
| Directive | Selector | Inputs / Outputs |
|---|---|---|
| BrnCarousel | hlm-carousel, [brnCarousel] |
|
Helm API
Styling and UI components for the carousel.
| Component | Selector | Description |
|---|---|---|
| HlmCarousel | hlm-carousel | The default styled carousel container. |
| HlmCarouselContent | hlm-carousel-content | Wrapper for the carousel slides. |
| HlmCarouselItem | hlm-carousel-item | A single slide in the carousel. |
| HlmCarouselPrevious | button[hlm-carousel-previous] | Button to go to the previous slide. |
| HlmCarouselNext | button[hlm-carousel-next] | Button to go to the next slide. |
| HlmCarouselSlideDisplay | hlm-carousel-slide-display | Component to display current slide count. |