kozan_core/html/
html_textarea_element.rs1use super::form_control::{FormControlElement, TextControlElement};
6use crate::Handle;
7use kozan_macros::{Element, Props};
8
9#[derive(Copy, Clone, Element)]
13#[element(tag = "textarea", focusable, data = TextAreaData)]
14pub struct HtmlTextAreaElement(Handle);
15
16#[derive(Default, Clone, Props)]
18#[props(element = HtmlTextAreaElement)]
19#[non_exhaustive]
20pub struct TextAreaData {
21 #[prop]
23 pub cols: u32,
24 #[prop]
26 pub rows: u32,
27 #[prop]
29 pub wrap: String,
30}
31
32impl FormControlElement for HtmlTextAreaElement {}
33impl TextControlElement for HtmlTextAreaElement {}