Carousel
Scroll snapping carousel with previous/next helpers.
Slide 1
Slide 2
Slide 3
Slide 4
Usage
import {Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious} from 'kinu';
<Carousel>
<CarouselContent>
<CarouselItem>Slide</CarouselItem>
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
Exports
| Name | Description | Rendered HTML |
|---|---|---|
| Carousel | Image slider | — |
| CarouselContent | Slider content | — |
| CarouselItem | Slide item | <div k="carousel-item"> |
| CarouselPrevious | Previous button | — |
| CarouselNext | Next button | — |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string |
— | Optional ID for the carousel content. If not provided, one will be auto-generated. |
Notes
- Leverages CSS scroll snap for buttery momentum.
- Content remains fully declarative.
_Source: src/components/carousel/index.tsx