Basic UI Elements
Buttons Preview link
<button type="button" class="btn btn-primary">Primary Button</button>
<button type="button" class="btn btn-secondary">Secondary Button</button>
<button type="button" class="btn btn-success">Success Button</button>
<button type="button" class="btn btn-info">Info Button</button>
<button type="button" class="btn btn-warning">Warning Button</button>
<button type="button" class="btn btn-danger">Danger Button</button>
<button type="button" class="btn btn-light">Light Button</button>
Tag & pills Preview link
<span class="badge badge-primary">Primary</span>
<span class="badge badge-secondary">Secondary</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-danger">Danger</span>
<span class="badge badge-light text-dark">Light</span>
<span class="badge badge-dark tag-pills-sm-mb">Dark</span>
Progressbar Preview link
<div class="progress mb-2">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
</div>
<div class="progress mb-2">
<div class="progress-bar bg-primary" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">
</div>
<div class="progress mb-2">
<div class="progress-bar bg-secondary" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
</div>
<div class="progress mb-2">
<div class="progress-bar bg-success" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100">
</div>
<div class="progress mb-2">
<div class="progress-bar bg-info" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
</div>
Alert Preview link
<div class="alert alert-primary" role="alert">The <a class="alert-link text-white" href="#">"alert-primary"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-secondary" role="alert">The <a class="alert-link text-white" href="#">"alert-secondary"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-success" role="alert">The <a class="alert-link text-white" href="#">"alert-success"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-info" role="alert">The <a class="alert-link text-white" href="#">"alert-info"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-warning" role="alert">The <a class="alert-link text-white" href="#">"alert-warning"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-danger" role="alert">The <a class="alert-link text-white" href="#">"alert-danger"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-light" role="alert">The <a class="alert-link text-dark" href="#">"alert-light"</a> class can be used to create an alert like this one.</div>
<div class="alert alert-dark" role="alert">The <a class="alert-link text-white" href="#">"alert-dark"</a> class can be used to create an alert like this one.</div>
Popover Preview link
<button class="btn btn-primary example-popover mb-0 me-0" type="button" popoverTitle="Basic title" ngbPopover="If the package restore doesn't help, you can look at the Output window in the Visual Studio." placement="left">Hurry Up!
</button>
<button class="example-popover btn btn-success mb-0 me-0" type="button" data-container="body" popoverTitle="Hover Popover" data-offset="-20px -20px" ngbPopover=" Several utility instruction sets have been featured in the Bootstrap 4 to promote very easy learning for beginners in the business of web building." triggers="mouseenter:mouseleave" placement="bottom">Hover tooltip
</button>
<a class="btn btn-lg btn-secondary" tabindex="0" role="button" popoverTitle="Dismissible popover" ngbPopover="You are able to even develop and suggest improvements to the Bootstrap 4 before its final version is delivered." placement="end"> Dismissible popover</a>
import { Component } from '@angular/core';
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-basic-popover',
templateUrl: './basic-popover.html',
styleUrls: ['./basic-popover.scss'],
standalone: true,
imports: [NgbPopover]
})
export class BasicPopover {
}
Tooltip Preview link
<button class="example-popover btn btn-primary mb-0 me-0" type="button" data-container="body" placement="top" ngbTooltip="Surprise!!! Thank you for hovering...">It's magic please hover me... </button>
import { Component } from '@angular/core';
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-basic-tooltip',
templateUrl: './basic-tooltip.html',
styleUrls: ['./basic-tooltip.scss'],
standalone: true,
imports: [NgbTooltip]
})
export class BasicTooltipComponent {
}
Dropdown Preview link
<div class="col">
<div ngbDropdown class="d-inline-block">
<button type="button" class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>
Toggle dropdown
</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button ngbDropdownItem>Action - 1</button>
<button ngbDropdownItem>Another Action</button>
<button ngbDropdownItem>Something else is here</button>
</div>
</div>
</div>
<div class="col">
import { Component } from '@angular/core';
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'ngbd-dropdown-basic',
standalone: true,
imports: [NgbDropdownModule],
templateUrl: './dropdown-basic.html',
})
export class NgbdDropdownBasic {}
Tab Preview link
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
<ul ngbNav #nav="ngbNav" [activeId]="2" class="nav-tabs justify-content-center">
<li [ngbNavItem]="1">
<button ngbNavLink>Simple</button>
<ng-template ngbNavContent>
<p>
Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth
master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro
keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat
salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
</p>
</ng-template>
</li>
<li [ngbNavItem]="2">
<button ngbNavLink><b>Fancy</b> title</button>
<ng-template ngbNavContent>
<p>
Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko
farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts
ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar
helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson
8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester
stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.
</p>
</ng-template>
</li>
<li ngbDropdown class="nav-item" role="presentation">
<button type="button" class="nav-link" ngbDropdownToggle>Dropdown</button>
<div ngbDropdownMenu>
<button ngbDropdownItem>Action</button>
<button ngbDropdownItem>Another action</button>
<button ngbDropdownItem>Something else here</button>
<div class="dropdown-divider"></div>
<button ngbDropdownItem>Separated link</button>
</div>
</li>
<li ngbNavItem [disabled]="true" class="ms-auto">
<button ngbNavLink>Disabled</button>
<ng-template ngbNavContent>
<p>
Sed commodo, leo at suscipit dictum, quam est porttitor sapien, eget sodales nibh elit id diam. Nulla facilisi.
Donec egestas ligula vitae odio interdum aliquet. Duis lectus turpis, luctus eget tincidunt eu, congue et odio.
Duis pharetra et nisl at faucibus. Quisque luctus pulvinar arcu, et molestie lectus ultrices et. Sed diam urna,
egestas ut ipsum vel, volutpat volutpat neque. Praesent fringilla tortor arcu. Vivamus faucibus nisl enim, nec
tristique ipsum euismod facilisis. Morbi ut bibendum est, eu tincidunt odio. Orci varius natoque penatibus et
magnis dis parturient montes, nascetur ridiculus mus. Mauris aliquet odio ac lorem aliquet ultricies in eget
neque. Phasellus nec tortor vel tellus pulvinar feugiat.
</p>
</ng-template>
</li>
</ul>
<div [ngbNavOutlet]="nav" class="mt-2"></div>
import { Component } from '@angular/core';
import { NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'ngbd-nav-custom-style',
standalone: true,
imports: [NgbNavModule, NgbDropdownModule],
templateUrl: './nav-custom-style.html',
})
export class NgbdNavCustomStyle {}
Accordion Preview link
<div ngbAccordion [closeOthers]="true">
@for (item of items; track item) {
<div ngbAccordionItem [collapsed]="item !== 'First'">
<h2 ngbAccordionHeader>
<button ngbAccordionButton>{{ item }}</button>
</h2>
<div ngbAccordionCollapse>
<div ngbAccordionBody>
<ng-template>
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon
officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3
wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan
excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt
you probably haven't heard of them accusamus labore sustainable VHS.
</ng-template>
</div>
</div>
</div>
}
</div>
import { Component } from '@angular/core';
import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'ngbd-accordion-static',
standalone: true,
imports: [NgbAccordionModule],
templateUrl: './accordion-static.html',
})
export class NgbdAccordionStatic {
items = ['First', 'Second', 'Third'];
}