View as Markdown

API reference: @salmonui/navigation/carousel

CarouselLocaleTextinterface

import type { CarouselLocaleText } from '@salmonui/navigation/carousel';
interface CarouselLocaleText {
    readonly carousel: string;
    readonly slide: string;
    readonly slideLabel: (index: number, total: number, label?: string) => string;
    readonly previous: string;
    readonly next: string;
    readonly play: string;
    readonly pause: string;
    readonly indicators: string;
    readonly indicator: (index: number, total: number, label?: string) => string;
    readonly fraction: (index: number, total: number) => string;
}

Static texts; every value has a default in CAROUSEL_DEFAULT_LOCALE_TEXT.

CarouselLocaleText members (10)
NameSignatureDescription
carouselreadonly carousel: string;

aria-roledescription of the root.

slidereadonly slide: string;

aria-roledescription of each slide.

slideLabelreadonly slideLabel: (index: number, total: number, label?: string) => string;

Accessible name of a slide ("1 of 5"); label is the slide's own label.

previousreadonly previous: string;
nextreadonly next: string;
playreadonly play: string;
pausereadonly pause: string;
indicatorsreadonly indicators: string;

Name of the indicator group.

indicatorreadonly indicator: (index: number, total: number, label?: string) => string;
fractionreadonly fraction: (index: number, total: number) => string;