"icon" |
diff --git a/src/button/button.css b/src/button/button.css
index 3942ffb..db77053 100644
--- a/src/button/button.css
+++ b/src/button/button.css
@@ -69,6 +69,12 @@
border-radius: var(--thaw-height);
}
+.thaw-button--circle:not(.thaw-button--link) {
+ width: var(--thaw-height);
+ padding: 0;
+ border-radius: var(--thaw-height);
+}
+
@keyframes thawLoadingCircle {
100% {
transform: rotate(360deg);
diff --git a/src/button/mod.rs b/src/button/mod.rs
index cd4f343..761e3aa 100644
--- a/src/button/mod.rs
+++ b/src/button/mod.rs
@@ -102,6 +102,7 @@ pub fn Button(
#[prop(optional, into)] color: MaybeSignal,
#[prop(optional, into)] size: MaybeSignal,
#[prop(optional, into)] round: MaybeSignal,
+ #[prop(optional, into)] circle: MaybeSignal,
#[prop(optional, into)] icon: Option,
#[prop(optional, into)] loading: MaybeSignal,
#[prop(optional, into)] disabled: MaybeSignal,
@@ -225,6 +226,7 @@ pub fn Button(
class=("thaw-button--text", move || variant.get() == ButtonVariant::Text)
class=("thaw-button--link", move || variant.get() == ButtonVariant::Link)
class=("thaw-button--round", move || round.get())
+ class=("thaw-button--circle", move || circle.get())
class=("thaw-button--disabled", move || disabled.get())
style=move || format!("{}{}", css_vars.get(), style.get())
disabled=move || disabled.get()
|