ButtonProps class

Canonical button properties with one optional semantic icon slot.

Constructors

ButtonProps({String? label, ArcaneGlyph? icon, ButtonIconPosition iconPosition = ButtonIconPosition.leading, void onPressed()?, ArcaneInteraction? action, ButtonVariant variant = ButtonVariant.primary, ButtonSize size = ButtonSize.md, bool disabled = false, bool loading = false, bool fullWidth = false, String? id, Map<String, String>? attributes, String? href, ButtonType type = ButtonType.button, ArcaneStyleData? styles, ArcaneDecoration? decoration})
const

Properties

action → ArcaneInteraction?
final
attributes → Map<String, String>?
final
decoration → ArcaneDecoration?
Semantic, theme-interpreted decoration (elevation intent + theme-specific fields honored-or-ignored per theme).
final
disabled → bool
final
fullWidth → bool
final
hashCode → int
The hash code for this object.
no setterinherited
href → String?
final
icon → ArcaneGlyph?
final
iconPosition → ButtonIconPosition
final
id → String?
final
label → String?
final
loading → bool
final
onPressed → void Function()?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → ButtonSize
final
styles → ArcaneStyleData?
Literal, theme-permeable style override (always applied, wins over theme).
final
type → ButtonType
final
variant → ButtonVariant
final

Methods

copyWith({String? label, ArcaneGlyph? icon, ButtonIconPosition? iconPosition, void onPressed()?, ArcaneInteraction? action, ButtonVariant? variant, ButtonSize? size, bool? disabled, bool? loading, bool? fullWidth, String? id, Map<String, String>? attributes, String? href, ButtonType? type, ArcaneStyleData? styles, ArcaneDecoration? decoration}) → ButtonProps
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited