You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buttons provide a clickable element, which can be used in forms, or anywhere that needs simple, standard button functionality. They may display text, icons, or both. Buttons can be styled with several attributes to look a specific way.
Expand
This attribute lets you specify how wide the button should be. By default, buttons are inline blocks, but setting this attribute will change the button to a full-width block element.
Value
Details
block
Full-width button with rounded corners.
full
Full-width button with square corners and no border on the left or right.
Fill
This attributes determines the background and border color of the button. By default, buttons have a solid background unless the button is inside of a toolbar, in which case it has a transparent background.
Value
Details
clear
Button with a transparent background that resembles a flat button.
outline
Button with a transparent background and a visible border.
solid
Button with a filled background. Useful for buttons in a toolbar.
Size
This attribute specifies the size of the button. Setting this attribute will change the height and padding of a button.
Value
Details
small
Button with less height and padding. Default for buttons in an item.
default
Button with the default height and padding. Useful for buttons in an item.
The color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.
string | undefined
undefined
disabled
disabled
If true, the user cannot interact with the button.
boolean
false
download
download
This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want).
string | undefined
undefined
expand
expand
Set to "block" for a full-width button or to "full" for a full-width button without left and right borders.
"block" | "full" | undefined
undefined
fill
fill
Set to "clear" for a transparent button, to "outline" for a transparent button with a border, or to "solid". The default style is "solid" except inside of a toolbar, where the default is "clear".