dioxus_tw_components/components/atoms/icon/style.rs
1use super::props::*;
2use crate::attributes::*;
3use dioxus::prelude::*;
4
5impl Class for IconProps {
6 fn base(&self) -> &'static str {
7 "select-none"
8 }
9
10 fn size(&self) -> Option<&'static str> {
11 Some(match *self.size.read() {
12 Size::Xs => "text-base",
13 Size::Sm => "text-xl",
14 Size::Md => "text-2xl",
15 Size::Lg => "text-4xl",
16 Size::Xl => "text-6xl",
17 })
18 }
19}