1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use dioxus::prelude::*;
#[derive(PartialEq, Props, Clone)]
pub struct TemplateProps {
    #[props(default)]
    pub variant: TemplateVariants,
    // Additional props can be added here.
}

#[derive(PartialEq, Clone)]
pub enum TemplateVariants {
    Default,
    _Secondary,
    // Additional variants can be added here.
}

impl Default for TemplateVariants {
    fn default() -> Self {
        TemplateVariants::Default
    }
}