Re-factor props and attrs handling.
This commit is contained in:
parent
c6ba1f9b11
commit
6236cf6ae9
27 changed files with 604 additions and 500 deletions
|
@ -1,7 +1,9 @@
|
|||
use crate::props::IntoBsClass;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Margin(pub super::Edge, pub usize);
|
||||
|
||||
impl super::BootstrapClass for Margin {
|
||||
impl IntoBsClass for Margin {
|
||||
fn as_classname(&self) -> String {
|
||||
format!("m{}-{}", self.0, self.1)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue