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.
Usage
The preview has been updated.
Accessibility
ZoomControls
requires you to set some accessibility props for a11y compliance:
- The
accessibleText
prop is required on sub componentsZoomControlsIn
,ZoomControlsOut
andZoomControlsValue
. These should be set to localized text that describes the button to the user e.g. "Zoom in", "Zoom out" and some text for the current zoom value "Current zoom level: 100%" respectively.