mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 08:34:15 -05:00
fix: the size attribute type of the avatar is non-negative
This commit is contained in:
parent
f6868418ae
commit
2b253fb1e1
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ pub use theme::AvatarTheme;
|
||||||
pub fn Avatar(
|
pub fn Avatar(
|
||||||
#[prop(optional, into)] src: MaybeSignal<String>,
|
#[prop(optional, into)] src: MaybeSignal<String>,
|
||||||
#[prop(optional, into)] circle: MaybeSignal<bool>,
|
#[prop(optional, into)] circle: MaybeSignal<bool>,
|
||||||
#[prop(default = MaybeSignal::Static(30), into)] size: MaybeSignal<i32>,
|
#[prop(default = MaybeSignal::Static(30), into)] size: MaybeSignal<u16>,
|
||||||
) -> impl IntoView {
|
) -> impl IntoView {
|
||||||
let theme = use_theme(Theme::light);
|
let theme = use_theme(Theme::light);
|
||||||
let css_vars = create_memo(move |_| {
|
let css_vars = create_memo(move |_| {
|
||||||
|
|
Loading…
Add table
Reference in a new issue