API reference
@salmonui/navigation/carousel
18 exported symbols: 2 functions, 11 interfaces, 4 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/navigation/carousel';Functions
CarouselCarousel (APG Carousel). ref is a CarouselApi. Styling hooks: .salmon-carousel with data-effect, data-controls, data-peek, data-playing, data-ready (after moun…CarouselSlideOne slide: role="group", aria-roledescription="slide", named "N of M".
Interfaces
CarouselApiThe ref instance.CarouselAutoPlayCarouselBeforeIndexChangeEventonBeforeIndexChange event: preventDefault() keeps the current slide.CarouselButtonContextCarouselIndexChangeEventCarouselIndicatorContextCarouselLocaleTextStatic texts; every value has a default in CAROUSEL_DEFAULT_LOCALE_TEXT.CarouselPlayButtonContextCarouselPlayingChangeEventCarouselPropsCarouselSlideProps
Types
CarouselChangeSourceWhat moved the carousel.CarouselControlsCarouselEffectCarouselIndicators