Components / ImageField

ImageField

A picture chosen by the person.

Example

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

Code

use ravenrs::prelude::*;

fn image_field() -> impl View {
    let photo = State::new(None::<PickedFile>);
    ImageField::new(photo.binding()).size(180.0, 120.0).label("Photo")
}

Open in the playground, with every example →

Full API of ImageField →