You can create an <button> object using the document.create_element method.
let button = document.create_element("button")
.unwrap()
.dyn_into::<web_sys::HtmlButtonElement>()
.unwrap();
You can access an <button> object using the document.get_element_by_id method.
let button = document.get_element_by_id("my-button")
.unwrap()
.dyn_into::<web_sys::HtmlButtonElement>()
.unwrap();
width - The width of the button.
width set_widthheight - The height of the button.
height set_height
features = [
'HtmlButtonElement',
]