# Button
<flow-button>
Buttons represent actions that are available to the user.
Buttons can include an optional icon and a label. A number of styles are provided including 'solid', 'outlined', 'compact' and 'icon-only'. The button component can be used like the standard HTML button
element. Attach a click
handler to respond to button clicks.
See <flow-icon>
for information on how to specify a built-in icon or icon URL.
# Examples
# Button Styles
The following button styles are provided. Use color and style to draw attention to primary actions.
# Colors
Use the color
attribute to set the button's color from the application palette.
# Disabled Buttons
Add the disabled
attribute to disable interaction with the button.
# Compact Buttons
Use compact buttons in toolbars and other UI elements where a smaller button is required.
# Buttons with Icons
Icons can be added before or after the button label. By default, icons are positioned before the label. Add the trailing-icon
attribute to position the icon after the label.
# Icon-Only Buttons
Add the icon-attribute
button to display an icon-only button. Icon-only buttons are useful for creating compact tool palettes.
# Link Buttons
Specify the href
attribute to create a link button, which will open the specified URL in a
new tab when clicked. Specify the download
attribute to download the linked file instead of
opening it in the browser.
← Busy Overlay Chart →