Vistaprint
styleKeyszoomControls

Zoom Controls

Zoom Controls provide buttons to let the user zoom in and out of the current view, as well as show the current level of zoom.

Current zoom level: 100%
Share
Share
jsx
<div class="zoom-controls">
<button class="zoom-controls-in">
<span class="visually-hidden">Zoom in</span>
</button>
<button class="zoom-controls-out">
<span class="visually-hidden">Zoom out</span>
</button>
<span class="zoom-controls-value">
<span class="visually-hidden">Current zoom level: </span>
100%
</span>
</div>

Note that the visuallyHiddenLabel props are mandatory, and their values must be localized.