pub fn focus<MSG>(is_focus: bool) -> Attribute<MSG>
Expand description

focus the html element

Examples

use sauron::prelude::*;

let editor:Node<()> = textarea(vec![focus(true)], vec![]);