Compare two images side by side with a slider.
Images are defined using templating with left and right slots. Use the style or class properties to define the size of the container.
Apply responsive styles to the container element to optimize display per screen size.
ImageComponent component uses a native range slider internally. Value to describe the component can be defined using aria-labelledby and aria-label props.
Key | Function |
---|---|
tab | Moves focus to the component. |
left arrowup arrow | Decrements the value. |
right arrowdown arrow | Increments the value. |
home | Set the minimum value. |
end | Set the maximum value. |
page up | Increments the value by 10 steps. |
page down | Decrements the value by 10 steps. |