Enum ButtonVariant
The visual variant of a Button.
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public enum ButtonVariant
Remarks
The variants mirror the App UI web design system one-for-one, so a button authored in UI Toolkit and the same button authored on the web carry the same name and the same emphasis.
Fields
| Name | Description |
|---|---|
| Default | The default, highest-emphasis button: a solid accent fill. Use it for the single primary action of a view or a dialog. |
| Destructive | A solid destructive fill, for actions with irreversible consequences such as deleting data. |
| Ghost | A borderless, fill-less button that only reveals a background on hover. This is the variant
formerly expressed as the |
| Link | A button that reads as a Link: accent-coloured text with no fill and no border. |
| Outline | A bordered button over the page background, with no fill of its own. |
| Secondary | A bordered button over the neutral control fill. The lower-emphasis companion to Default, for actions such as Cancel. |