dioxus_bootstrap/background.rs
1//! This module contains general class selectors defined by the Bootstrap theme. It does not contain any components.
2
3#[derive(Clone, PartialEq)]
4pub enum BackGroundColor {
5 None,
6 Primary,
7 Secondary,
8 Tertiary,
9}
10
11impl From<BackGroundColor> for &str {
12 fn from(value: BackGroundColor) -> &'static str {
13 match value {
14 BackGroundColor::Primary => "bg-body-primary",
15 BackGroundColor::Secondary => "bg-body-secondary",
16 BackGroundColor::Tertiary => "bg-body-tertiary",
17 _ => "",
18 }
19 }
20}