Enums: Button

Control button behavior and grouping with strongly typed enums.

Button enums help you pick intent-driven behavior like submit actions and layout roles like addon groups or toolbars.

How it works

Use ButtonType on the <Button> component to define HTML behavior, and use ButtonsRole on button groups to control layout.

Examples

  • ButtonType.Submit for form submission buttons.
  • ButtonType.Link to render a button styled like a link.
  • ButtonsRole.Toolbar for toolbar-style button groups.

Reference

ButtonsRole

Buttons group behaviour.

  • ButtonsRole.Addons Display buttons as addons.
  • ButtonsRole.Toolbar Display buttons as toolbar buttons.

ButtonType

Defines the button type and behaviour.

  • ButtonType.Button The button is a clickable button.
  • ButtonType.Submit The button is a submit button (submits form-data).
  • ButtonType.Reset The button is a reset button (resets the form-data to its initial values).
  • ButtonType.Link The button will be rendered as a link but will appear as a regular button.
On this page