freya_components/icons/
tick.rs1use dioxus::prelude::*;
2use freya_elements as dioxus_elements;
3use freya_hooks::{
4 use_applied_theme,
5 IconTheme,
6 IconThemeWith,
7};
8
9#[derive(Props, Clone, PartialEq)]
11pub struct TickIconProps {
12 pub theme: Option<IconThemeWith>,
14 #[props(into)]
16 pub fill: String,
17}
18
19#[allow(non_snake_case)]
21pub fn TickIcon(TickIconProps { theme, fill }: TickIconProps) -> Element {
22 let IconTheme {
23 height,
24 width,
25 margin,
26 } = use_applied_theme!(&theme, icon);
27
28 rsx!(svg {
29 height: "{height}",
30 width: "{width}",
31 margin: "{margin}",
32 svg_content: r#"
33 <svg viewBox="0 0 333 263" fill="none" xmlns="http://www.w3.org/2000/svg">
34 <path d="M304.109 0L333 28.8909L99.1812 262.71L70.2903 233.819L304.109 0Z" fill="{fill}"/>
35 <path d="M0 163.53L27.1003 136.429L126.003 235.332L98.9029 262.433L0 163.53Z" fill="{fill}"/>
36 </svg>
37 "#
38 })
39}