Buttons
Buttons allow users to take actions, and make choices, with a single tap.
Variants
Each variant of buttons have different prominence. For example, the outline buttons are more prominent than the ghost buttons, but the default buttons are more prominent than the outline buttons.
Default
These are the default buttons, they are the most prominent buttons
Outlined
Outlined buttons are considered secondary buttons. These are used next to a primary button, which will have the preferred action. Add the outline attribute to make a button outlined.
Ghost
Ghost buttons are considered tertiary buttons. They have the least prominence.
Icons
There are two types of buttons with icons, one with only a icon, the other with text and icon.
Icon Button
Add the icon attribute to get an icon button, make sure you don't have text inside the button.
Icons button with text
Adding an icon to a button makes the button more prominent. To position the icon, add the left or right attribute to the b-icon component.
Circular
Buttons can be made round by adding the circle attribute. Using this with the icon attribute will give you a FAB (Floating action button). This attribute can also be used with a normal button.
TIP
If you're creating a FAB, make sure the b-icon component has at least 25px height.
Glass
If you have content below you're button, you can add the glass attribute to make it look better
Windows 11 will start to become available on October 5, 2021
Size
Besides its normal size, buttons come in four sizes, tiny, small, medium, large.
Effects
Buttons can have a different click effect, if you feel like the default button click effect is boring.
TIP
Normally, the box-shadow that comes when a button is clicked is removed when the ripple or bounce attributes are added. If you want the box-shadow, add the focus-border attribute. Also, try to maintain consistency when using these, since using them inconsistently might confuse the user.
Ripple
This will give a ripple effect when a user clicks on it.
Bounce
The bounce attribute will make the button scale down when it being clicked.