Skip to content

v0.107.0

Choose a tag to compare

@Khalidabdi1 Khalidabdi1 released this 07 Oct 17:19
· 200 commits to main since this release

Added

  • Button — spinnerProps reaches the spinner a loading button shows. Until now it was always drawn in the label's colour, with no way to change it. color and trackColor take any colour React Native accepts; className takes theme tokens, and replaces the variant's own classes rather than competing with them. size overrides the size picked from the button's. There is no label, because the button already announces itself as busy while it loads. A native button has no spinner and ignores the prop. Requested in #233 by @yashDahiwale.
<Button loading={saving} spinnerProps={{ color: palette.primary }} fullWidth>
  {saving ? 'Saving…' : 'Save'}
</Button>