Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

Carousel

Carousel is a component that displays multiple elements like a slideshow.

Source@yamada-ui/carousel

The Carousel follows the WAI-ARIA - Carousel (Slide Show or Image Rotator) Pattern for accessibility.

Keyboard Navigation

keyDescriptionState
TabWhen focus moves to the carousel, it focuses the active item.-
ArrowLeftFocuses and activates the previous item. If it is the first item, focuses the last item.orientation="horizontal"
ArrowRightFocuses and activates the next item. If it is the last item, focuses the first item.orientation="horizontal"
ArrowUpFocuses and activates the previous item. If it is the first item, focuses the last item.orientation="vertical"
ArrowDownFocuses and activates the next item. If it is the last item, focuses the first item.orientation="vertical"
HomeFocuses and activates the first item.-
EndFocuses and activates the last item.-

ARIA Roles and Attributes

ComponentRole and AttributesUsage
Carouselaria-roledescription="carousel"Indicates that it is a carousel.
CarouselSlides Internalidid to be used to associate with CarouselControlNext and CarouselControlPrev.
aria-liveSet “off” if autoplay is true or “polite” if false.
CarouselControlNextaria-controlsSet the id of the associated CarouselSlides.
aria-label="Go to next slide"Set Go to next slide.
CarouselControlPrevaria-controlsSet the id of the associated CarouselSlides.
aria-label="Go to previous slide"Set Go to previous slide.
CarouselIndicatorsrole="tablist"Indicates that this is a tab list.
aria-label="Sliders"Set Sliders.
aria-orientationSet “horizontal” or “vertical” based on orientation value.
CarouselIndicator Internalrole="tab"Indicates that this is a tab.
aria-controlsSet the id of the associated CarouselSlide.
aria-labelSet the destination slide number, such as Go to 1 slide.
aria-selectedSet true if the associated slide is selected, false if not.
CarouselSliderole="tabpanel"Indicates that this is a tab panel.
idThe id to use to associate with the CarouselIndicator.
aria-labelSet to the number of the current slide, such as 1 of 4.
aria-roledescription="slide"Indicates that this is a slide.

Edit this page on GitHub

PreviousRadialChartNextReorder