Zoom Controls
Zoom in and out of the current view.
styleKeys: zoomControls
Props
ZoomControlsIn
This component is implemented using the
<button />
as the root element. You can utilize the native attributes supported by <button />
tag. The ref
is directly assigned to the root element, allowing you to access and manipulate it as needed.See core props for additional props that can be applied to this component.
prop | type | required | description | default |
---|---|---|---|---|
visuallyHiddenLabel | ReactNodeLike | false | A localized label which describes the button to screen-reader users
Typically it is just a string like "Zoom in" | null |
accessibleText | string | null | false | Serves same purpose as `visuallyHiddenLabel` but accepts only string. In the long run, we prefer this over the former. | null |
ZoomControls
This component is implemented using the
<div />
as the root element. You can utilize the native attributes supported by <div />
tag. The ref
is directly assigned to the root element, allowing you to access and manipulate it as needed.See core props for additional props that can be applied to this component.
ZoomControlsOut
This component is implemented using the
<button />
as the root element. You can utilize the native attributes supported by <button />
tag. The ref
is directly assigned to the root element, allowing you to access and manipulate it as needed.See core props for additional props that can be applied to this component.
prop | type | required | description | default |
---|---|---|---|---|
visuallyHiddenLabel | ReactNodeLike | false | A localized label which describes the button to screen-reader users
Typically it is just a string like "Zoom in" | null |
accessibleText | string | null | false | Serves same purpose as `visuallyHiddenLabel` but accepts only string. In the long run, we prefer this over the former. | null |
ZoomControlsValue
This component is implemented using the
<span />
as the root element. You can utilize the native attributes supported by <span />
tag. The ref
is directly assigned to the root element, allowing you to access and manipulate it as needed.See core props for additional props that can be applied to this component.
prop | type | required | description | default |
---|---|---|---|---|
visuallyHiddenLabel | ReactNodeLike | false | A localized label which describes the button to screen-reader users
Typically it is just a string like "Zoom in" | null |
accessibleText | string | null | false | Serves same purpose as `visuallyHiddenLabel` but accepts only string. In the long run, we prefer this over the former. | null |
How does Zoom Controls meet your needs?