Components / ZoomControl

ZoomControl

Fit, 1:1, the percentage and buttons that zoom in and out.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn zoom_control() -> impl View {
    let view = State::new(ZoomView::at(1.5));
    ZoomControl::new(view.binding())
}

Open in the playground, with every example →

Full API of ZoomControl →