bootstack.dialogs.DialogButton#
- class bootstack.dialogs.DialogButton(text, role='secondary', result=None, closes=True, default=False, command=None, accent=None, variant=None, icon=None)#
Bases:
objectSpecification for a dialog button.
- accent: AccentToken | str | None = None#
Accent token for styling (e.g.
'primary','danger').
- role: ButtonRole = 'secondary'#
Role that determines the button’s styling and keyboard behavior. One of
'primary'(main action, triggered by Enter whendefault=True),'secondary'(neutral action, no keyboard shortcut),'danger'(destructive action, not focused by default), or'cancel'(triggered by Escape).
- variant: VariantToken | str | None = None#
Style variant (e.g.
'outline','link').