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
// Copyright (c) 2023 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Apache-2.0 License that can be found
// in the LICENSE file.

use crate::styles::CssClass;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Variant {
    FullWidth,
    Inset,
    Middle,
}

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

impl CssClass for Variant {
    fn css_class(&self) -> &'static str {
        match self {
            Self::FullWidth => "ZuDivider-fullWidth",
            Self::Inset => "ZuDivider-inset",
            Self::Middle => "ZuDivider-middle",
        }
    }
}