Galleria

Galleria is an advanced content gallery component.

Galleria requires a value as a collection of images, item template for the higher resolution image and thumbnail template to display as a thumbnail.

Galleria requires a value as a collection of images, item template for the higher resolution image and thumbnail template to display as a thumbnail.

basic-demo

Galleria can be controlled programmatically using the activeIndex property.

controlled-demo

Indicators are displayed at the bottom by enabling showIndicators property and interacted with the click event by default.

click-event-demo

Indicators can be activated on hover instead of click if changeItemOnIndicatorHover is added.

hover-event-demo

Indicators can be placed at four different sides using the indicatorsPosition property. In addition, enabling showIndicatorsOnItem moves the indicators inside the image section. indicatorsPosition set to bottom by default, accepted values are top, left, right, and bottom.

positioned-demo

Indicator content can be customized with the indicator template.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
template-demo

Galleria can be controlled programmatically using the activeIndex property.

thumbnail-demo

Galleria responsiveness is defined with the responsiveOptions property.

responsive-demo

Full screen mode is enabled by adding fullScreen property.

with-thumbnails-demo

Thumbnails can also be hidden in full screen mode.

without-thumbnails-demo

Using activeIndex, Galleria is displayed with a specific initial image.

Description for Image 1
Description for Image 2
Description for Image 3
Description for Image 4
Description for Image 5
Description for Image 6
Description for Image 7
Description for Image 8
Description for Image 9
Description for Image 10
Description for Image 11
Description for Image 12
Description for Image 13
Description for Image 14
Description for Image 15
custom-content-demo

Add showItemNavigators to display navigator elements and the left and right side.

item-thumbnails-demo

Simple example with indicators only.

item-without-thumbnails-demo

Navigators are displayed on hover only if showItemNavigatorsOnHover is enabled.

hover-demo

Navigators and Indicators can be combined as well.

indicators-demo

A slideshow implementation is defined by adding circular and autoPlay properties.

auto-play-demo

Description of an image is specified with the caption template.

Title 1

Description for Image 1

caption-demo

Galleria can be extended further to implement complex requirements.

advanced-demo

Screen Reader

Galleria uses region role and since any attribute is passed to the main container element, attributes such as aria-label and aria-roledescription can be used as well. The slides container has aria-live attribute set as "polite" if galleria is not in autoplay mode, otherwise "off" would be the value in autoplay.

A slide has a group role with an aria-label that refers to the aria.slideNumber property of the locale API. Similarly aria.slide is used as the aria-roledescription of the item. Inactive slides are hidden from the readers with aria-hidden.

Next and Previous navigators are button elements with aria-label attributes referring to the aria.nextPageLabel and aria.firstPageLabel properties of the locale API by default respectively, you may still use your own aria roles and attributes as any valid attribute is passed to the button elements implicitly by using nextButtonProps and prevButtonProps.

Quick navigation elements and thumnbails follow the tab pattern. They are placed inside an element with a tablist role whereas each item has a tab role with aria-selected and aria-controls attributes. The aria-label attribute of a quick navigation item refers to the aria.pageLabel of the locale API. Current page is marked with aria-current.

In full screen mode, modal element uses dialog role with aria-modal enabled. The close button retrieves aria-label from the aria.close property of the locale API.

Next/Prev Keyboard Support

KeyFunction
tabMoves focus through interactive elements in the carousel.
enterActivates navigation.
spaceActivates navigation.

Quick Navigation Keyboard Support

KeyFunction
tabMoves focus through the active slide link.
enterActivates the focused slide link.
spaceActivates the focused slide link.
right arrowMoves focus to the next slide link.
left arrowMoves focus to the previous slide link.
homeMoves focus to the first slide link.
endMoves focus to the last slide link.
ON THIS PAGE
Figma UI Kit
The official Figma UI Kit for Prime UI libraries, the essential resource for designing with PrimeOne components.
Learn More