1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// The static attribute key for demonstrating compile-time known attribute names.
pub const STATIC_ATTR_KEY: &str = "data-role";
/// The static attribute value for demonstrating compile-time known attribute values.
pub const STATIC_ATTR_VALUE: &str = "demo-static";
/// The placeholder text for the dynamic attribute key input.
pub const DYNAMIC_KEY_PLACEHOLDER: &str = "Enter attr key (e.g. data-custom)";
/// The placeholder text for the dynamic attribute value input.
pub const DYNAMIC_VALUE_PLACEHOLDER: &str = "Enter attr value";
/// The autocomplete attribute value for the dynamic key input.
pub const ATTRS_AUTOCOMPLETE_OFF: &str = "off";
/// The HTML id for the dynamic attribute key input element.
pub const DYNAMIC_KEY_INPUT_ID: &str = "attrs-dynamic-key";
/// The HTML id for the dynamic attribute value input element.
pub const DYNAMIC_VALUE_INPUT_ID: &str = "attrs-dynamic-value";
/// The default CSS property key for the class macro dynamic key demo.
pub const CLASS_DYNAMIC_PROP_KEY: &str = "background-color";
/// The default CSS property value for the class macro dynamic key demo.
pub const CLASS_DYNAMIC_PROP_VALUE: &str = "#dbeafe";
/// The placeholder text for the CSS property key input.
pub const CLASS_KEY_PLACEHOLDER: &str = "Enter CSS prop key (e.g. background-color)";
/// The placeholder text for the CSS property value input.
pub const CLASS_VALUE_PLACEHOLDER: &str = "Enter CSS prop value (e.g. #dbeafe)";
/// The HTML id for the CSS property key input element.
pub const CLASS_KEY_INPUT_ID: &str = "attrs-class-key";
/// The HTML id for the CSS property value input element.
pub const CLASS_VALUE_INPUT_ID: &str = "attrs-class-value";