Button vs. link
The HTML elements for buttons and links describe a very specific type of action that is going to be taken when they are used. However, it is important to know when to use one or the other in a specific situation:
- Use links for navigating to other pages.
- Use buttons for performing an action, such as: “submit,” “merge,” “create new,” “upload,” etc. These actions almost always occur on the same page.
btn-linkclass styled like a button. All links should be clearly styled as links. This helps the user identify the type of response to expect when clicking a giving elements. Go to the usage page for more information.
A default button is the standard button with basic style and the most commonly used option.
Use the inverse button when you placing a default button on a dark background.
A primary button is used for call-to-actions that are clearly more important and need attention drawn to it.
The outlined version is the alternative to solid primary buttons. Use these buttons when actions are primary but don’t want to give extra visual weight.
Use the danger button to indicate destructive or negative actions. For example, deleting data.