1 2 3 4 5 6 7 8 9 10 11
use crate::components::{Text, TextStyle};
use crate::DefaultModifiers;
pub struct Tag;
impl Tag {
pub fn new(label: &str) -> Text {
Text::new(label, TextStyle::Overline)
.add_class("tag")
}
}1 2 3 4 5 6 7 8 9 10 11
use crate::components::{Text, TextStyle};
use crate::DefaultModifiers;
pub struct Tag;
impl Tag {
pub fn new(label: &str) -> Text {
Text::new(label, TextStyle::Overline)
.add_class("tag")
}
}