Migrating fly-btn
Plain HTML elements containing the fly-btn class, and additional state or variant classes.
See fly-btn documentation for more details.
fly-btn (no variant) to @variant="secondary"fly-btn--primary to @variant="primary"fly-btn--subtle to @variant="subtle"fly-btn--outline to @variant="secondary"fly-btn--tertiary to @variant="tertiary"disabled attribute and is-disabled class to @isDisabled={{true}} argumentfly-btn--sm sized buttons to @size="sm"fly-btn--lg has no equivalent in Pluma, use default size insteadfly-btn--block (full width button) to:
@w="full" if not in a flex container@flexGrow="1" if in a flex containerIn Fly, icons were put in the button tag contents. In Pluma, PlumaButton
accepts an @icon argument. Additionally, PlumaButton:
@iconPosition (default leading or trailing) for placement before or after the button text@isIconOnly for buttons with only an icon
aria-label for accessibilityIn Fly, click handlers are attached with Ember modifiers {{on "click" this.callback}}.
In Pluma, use the @onClick argument instead.
In Fly, a conditional loading state may be a button containing a fly-spinner element, and in a disabled state.
In Pluma, use the @isLoading argument instead.
Source:
Target:
Source:
Target: