Angular MDBootstrap Button Group Component Last Updated : 12 Apr, 2025 Comments Improve Suggest changes Like Article Like Report MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Button Group Component in Angular MDBootstap.The Button Group Component is used to show a group of buttons with no space between them. It can be either grouped horizontally or vertically, which allows the users to put the number of options available to choose.Syntax:<div class="btn-group" role="group" aria-label="Basic example"> <button mdbBtn type="button color="primary"> Content </button> <button mdbBtn type="button color="success"> Content </button></div>Approach:Download Angular MDBootstrap from the official site.Extract the files to the current working directory.Install npm in the current project using the following command:npm installAfter creating your project folder i.e. appname, move to it using the following command:cd appnameStart the server using the following command:ng serveProject Structure: After complete installation, it will look like the following:Project StructureExample 1: This is the basic example that illustrates how to use the Button Group component in Angular MDBootstrap. app.component.html <div id='gfg'> <h2>GeeksforGeeks</h2> <h4>Angular MDBootstrap Button Group Component</h4> <br /> <div class="btn-group" role="group" aria-label="Basic example"> <button mdbBtn color="red" mdbWavesEffect> Button 1 </button> <button mdbBtn color="green" mdbWavesEffect> Button 2 </button> <button mdbBtn color="blue" mdbWavesEffect> Button 3 </button> <button mdbBtn color="yellow" mdbWavesEffect> Button 4 </button> </div> </div> app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent{} app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { MDBBootstrapModule } from 'angular-bootstrap-md'; import { FormsModule } from '@angular/forms'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, BrowserAnimationsModule, MDBBootstrapModule.forRoot(), FormsModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule{} Output:Example 2: This example illustrates different button sizes in the Button Group Component. app.component.html <div id='gfg'> <h2>GeeksforGeeks</h2> <h4>Angular MDBootstrap Button Group Component</h4> <br /> <div class="btn-group btn-group-lg" role="group" aria-label="Basic example"> <button mdbBtn color="red" mdbWavesEffect> Button 1 </button> <button mdbBtn color="green" mdbWavesEffect> Button 2 </button> <button mdbBtn color="blue" mdbWavesEffect> Button 3 </button> <button mdbBtn color="yellow" mdbWavesEffect> Button 4 </button> </div> <br/> <br/> <div class="btn-group btn-group-sm" role="group" aria-label="Basic example"> <button mdbBtn color="red" mdbWavesEffect> Button 1 </button> <button mdbBtn color="green" mdbWavesEffect> Button 2 </button> <button mdbBtn color="blue" mdbWavesEffect> Button 3 </button> <button mdbBtn color="yellow" mdbWavesEffect> Button 4 </button> </div> </div> app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent{} app.module.ts import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppComponent } from './app.component'; import { MDBBootstrapModule } from 'angular-bootstrap-md'; import { FormsModule } from '@angular/forms'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, BrowserAnimationsModule, MDBBootstrapModule.forRoot(), FormsModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule{} Output:Different button sizes in Button Group Component Comment More infoAdvertise with us Next Article Angular MDBootstrap Button Group Component taran910 Follow Improve Article Tags : Web Technologies AngularJS Geeks Premier League Geeks-Premier-League-2022 MDBootstrap Similar Reads Angular MDBootstrap Buttons Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Buttons Component in Angular MDBootstap. The Buttons component is used to make a button that will ind 3 min read Angular MDBootstrap Dropdown Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use the Dropdown Component in Angular MDBootstap. The Dropdown Component facilitates the creation of togg 3 min read ReactJS MDBootstrap Button group Component MDBootstrap is a Material Design and bootstrap-based react UI library that is used to make good-looking webpages with its seamless and easy-to-use component.In this article we will know how to use Button group Component in ReactJS MDBootstrap. Button group Component is used to show a group of button 3 min read Angular MDBootstrap Forms Checkbox Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Checkbox Component in Angular MDBootstrap.A Checkbox Component lets a user definitely choose a value 4 min read Angular MDBootstrap Badges Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Badges Component in Angular MDBootstap. The Badges Component is used to represent the text as a statu 3 min read Javascript MDBootstrap Button Group Component MDBootstrap is a Material Design and bootstrap-based Javascript UI library that is used to make attractive web pages with its seamless and easy-to-use component. It is free for both personal & commercial use. In this article, we will know how to use List Group Component in MDBootstap Javascript. 2 min read Angular MDBootstrap Forms Input Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use the Forms Input Component in Angular MDBootstrap.Forms Inputs Component allows a user to make a field 6 min read Angular MDBootstrap Forms File Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Forms File Component in Angular MDBootstrap.The File Component allows a user to select a file from th 2 min read Javascript MDBootstrap Buttons Component MDBootstrap is a Material Design and bootstrap-based Javascript UI library that is used to make attractive webpages with its seamless and easy-to-use component. It is free for both personal & commercial use. In this article, we will know how to use Buttons Component in Javascript MDBootstap.MDBo 2 min read Angular MDBootstrap Forms Radio Component MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Forms Radio Component in Angular MDBootstrap.A Radio Button Component is a component that allows a us 4 min read Like