Web components for the Yew framework that support Bootstrap for styling.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
381 B

use super::{Color, Edge};
#[derive(Clone, PartialEq)]
pub struct Border(pub Edge, pub Color);
impl super::BootstrapClass for Border {
fn as_classname(&self) -> String {
let edge = match self.0 {
Edge::All => "border".to_owned(),
_ => self.0.with_prefix("border"),
};
format!("{} {}", edge, self.1.with_prefix("border"))
}
}