1use yew::prelude::*;
2#[derive(PartialEq, Properties)]
3pub struct EqualNotProps {
4 #[prop_or(24)]
5 pub size: usize,
6 #[prop_or(AttrValue::from("currentColor"))]
7 pub color: AttrValue,
8 #[prop_or(AttrValue::from("none"))]
9 pub fill: AttrValue,
10 #[prop_or(2)]
11 pub stroke_width: usize,
12 #[prop_or(false)]
13 pub absolute_stroke_width: bool,
14 #[prop_or_default]
15 pub class: Classes,
16 #[prop_or_default]
17 pub node_ref: NodeRef,
18}
19#[function_component]
20pub fn EqualNot(props: &EqualNotProps) -> Html {
21 let stroke_width = if props.absolute_stroke_width {
22 props.stroke_width * 24 / props.size
23 } else {
24 props.stroke_width
25 };
26 html! {
27 <svg
28 ref={props.node_ref.clone()}
29 class={classes!("lucide", props.class
30 .clone())}
31 xmlns="http://www.w3.org/2000/svg"
32 width={props.size.to_string()}
33 height={props.size.to_string()}
34 viewBox="0 0 24 24"
35 fill={& props.fill}
36 stroke={& props.color}
37 stroke-width={stroke_width.to_string()}
38 stroke-linecap="round"
39 stroke-linejoin="round"
40 >
41 <line x1="5" x2="19" y1="9" y2="9" />
42 <line x1="5" x2="19" y1="15" y2="15" />
43 <line x1="19" x2="5" y1="5" y2="19" />
44 </svg>
45 }
46}