From 2b253fb1e1ca066147e2a2f8a327af7e109981ca Mon Sep 17 00:00:00 2001 From: luoxiao Date: Tue, 14 Nov 2023 14:16:12 +0800 Subject: [PATCH] fix: the size attribute type of the avatar is non-negative --- src/avatar/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avatar/mod.rs b/src/avatar/mod.rs index 496817e..7712672 100644 --- a/src/avatar/mod.rs +++ b/src/avatar/mod.rs @@ -8,7 +8,7 @@ pub use theme::AvatarTheme; pub fn Avatar( #[prop(optional, into)] src: MaybeSignal, #[prop(optional, into)] circle: MaybeSignal, - #[prop(default = MaybeSignal::Static(30), into)] size: MaybeSignal, + #[prop(default = MaybeSignal::Static(30), into)] size: MaybeSignal, ) -> impl IntoView { let theme = use_theme(Theme::light); let css_vars = create_memo(move |_| {