Skip to main content

orbital_base_components/form/combobox/
mod.rs

1#[derive(Debug, Default, PartialEq, Clone, Copy)]
2pub enum ComboboxSize {
3    Small,
4    #[default]
5    Medium,
6    Large,
7}
8
9impl ComboboxSize {
10    pub fn as_str(&self) -> &'static str {
11        match self {
12            Self::Small => "small",
13            Self::Medium => "medium",
14            Self::Large => "large",
15        }
16    }
17}