API reference: @salmonui/navigation/carousel
CarouselApiinterface
import type { CarouselApi } from '@salmonui/navigation/carousel';interface CarouselApi {
readonly element: HTMLElement | null;
readonly index: number;
readonly playing: boolean;
next(): void;
previous(): void;
goTo(index: number): void;
play(): void;
pause(): void;
}
The ref instance.
| Name | Signature | Description |
|---|---|---|
element | readonly element: HTMLElement | null; | |
index | readonly index: number; | |
playing | readonly playing: boolean; | |
next | next(): void; | |
previous | previous(): void; | |
goTo | goTo(index: number): void; | |
play | play(): void; | |
pause | pause(): void; |