spz-gallery
When to use
spz-gallery creates an expandable gallery where one item is expanded while the others are collapsed. Items can be arranged in a row or column layout.
Use it when you need to:
- Display a set of items where one is prominent and the rest are minimized
- Build accordion-style image galleries
- Create before/after comparison layouts
Supported layout
container
Example
Basic row gallery
Column mode with initial index
Expand via action
Attributes
Status attributes
Actions
expand
Expand the item at the specified index.
Parameters:
index(number): The zero-based index of the item to expand
Example:
Notes
- Requires at least 2 child elements.
- This component does not emit custom events.
- Responsive attributes (
mode,collapse-rate,min-collapse) accept media query syntax for breakpoint-based values.