app.component.html
<h2>Angular Material - Vertical Button toggle group</h2>
<div style="padding: 25px;">
<mat-button-toggle-group
#toggleGroup="matButtonToggleGroup" vertical="true">
<mat-button-toggle value="android">
Android
</mat-button-toggle>
<mat-button-toggle value="java">
Java
</mat-button-toggle>
<mat-button-toggle value="kotlin">
Kotlin
</mat-button-toggle>
<mat-button-toggle value="bootstrap">
Bootstrap
</mat-button-toggle>
<mat-button-toggle value="html">
HTML
</mat-button-toggle>
</mat-button-toggle-group>
</div>
<h1 style="padding-left:25px;" *ngIf="toggleGroup.value">
You selected : {{toggleGroup.value}}
</h1>
app.module.ts [import]
import {MatButtonToggleModule} from '@angular/material/button-toggle';



- angular material - Button toggle group appearance
- angular material - How to set Button toggle appearance
- angular material - Button toggle group icon only
- angular material - Icon only Button toggle
- angular material - Progress bar with percentage
- angular material - How to use indeterminate Progress bar
- angular material - How to use buffer Progress bar
- angular material - How to slow Tabs content transition
- angular material - How to get Tabs selected index
- angular material - How to use Tabs selectedTabChange event
- angular material - How to show Badge in a button
- angular material - How to show Badge with icon
- angular material - Badge position before & below after
- angular material - How to use Action List
- angular material - Action list with button and icon