Ply carousel is ply-horizontal-carousel: a sideways-scrolling row of cards with drag and swipe. Install carousel. It is not the gallery slider (fade/slide images) and not range-slider (a numeric track). Older docs mixed those names; the CLI name carousel is this scroller.
Install with npx ply-ui-cli add carousel.
Need fade/slide image decks with captions and autoplay? That is gallery slider (npx ply-ui-cli add slider). A numeric track is range-slider.
A CSS-grid row that scrolls sideways. Mouse drag and touch swipe are built in.
<ply-horizontal-carousel title="Example Grid"> <div class="item">Item 1</div> <div class="item">Item 2</div> <div class="item">Item 3</div> </ply-horizontal-carousel>
TypeScript
import { Component } from '@angular/core';
// Install: npx ply-ui-cli add carousel
// Paths are relative to aliases.components (default: src/app/components)
import { HorizontalCarouselComponent } from './carousel/carousel.component';
@Component({
selector: 'app-carousel-example',
imports: [
HorizontalCarouselComponent
],
template: `...`
})
export class CarouselExampleComponent {}Install
npx ply-ui-cli add carousel
Run the following command to add this component to your project:
npx ply-ui-cli add carousel
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add carousel
// Paths are relative to aliases.components (default: src/app/components)
import { HorizontalCarouselComponent } from './carousel/carousel.component';
@Component({
selector: 'app-your-component',
imports: [
HorizontalCarouselComponent
],
template: `...`
})
export class YourComponent {} API for carousel — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
ply-horizontal-carousel | class | string | '' | Additional host CSS classes (merged via cn()). |
ply-horizontal-carousel | title | string | '' | — |
Content