ButtonProps constructor

const ButtonProps({
  1. String? label,
  2. ArcaneGlyph? icon,
  3. ButtonIconPosition iconPosition = ButtonIconPosition.leading,
  4. void onPressed()?,
  5. ArcaneInteraction? action,
  6. ButtonVariant variant = ButtonVariant.primary,
  7. ButtonSize size = ButtonSize.md,
  8. bool disabled = false,
  9. bool loading = false,
  10. bool fullWidth = false,
  11. String? id,
  12. Map<String, String>? attributes,
  13. String? href,
  14. ButtonType type = ButtonType.button,
  15. ArcaneStyleData? styles,
  16. ArcaneDecoration? decoration,
})

Implementation

const ButtonProps({
  this.label,
  this.icon,
  this.iconPosition = ButtonIconPosition.leading,
  this.onPressed,
  this.action,
  this.variant = ButtonVariant.primary,
  this.size = ButtonSize.md,
  this.disabled = false,
  this.loading = false,
  this.fullWidth = false,
  this.id,
  this.attributes,
  this.href,
  this.type = ButtonType.button,
  this.styles,
  this.decoration,
});