components/u_button
library
Classes
-
UButton
-
Button with loading state, icon, sizes, full width, and a built-in "resend in 59s" countdown.
UButton(title: "Save", onTap: save, isLoading: saving)
-
UButtonSubmitCancel
-
Submit + cancel buttons side by side (for forms and dialogs).
UButtonSubmitCancel(onSubmit: save)
-
UPressable
-
Makes any widget shrink a bit while pressed, then calls onTap.
UPressable(onTap: open, child: card)
Enums
-
UButtonIconPosition
-
Icon before (leading) or after (trailing) the title.
-
UButtonLoadingPosition
-
Where the spinner shows while loading: replace the content, leading or trailing.
-
UButtonSize
-
Preset height/padding: small, medium, large.
-
UButtonType
-
Button look: elevated, filled, filledTonal, text, outlined, icon, fab, cupertino, or custom.