A modern and comprehensive Angular library that provides components, directives, and utilities to accelerate enterprise application development. Created to work perfectly with Bootstrap 5 and ngx-bootstrap, this library provides ready-to-use components with consistent design and high quality.
v19.0.1 - Compatible with Angular 19+ | Version aligned with Angular releases
π Versioning Strategy: Our library follows Angular's major version releases. Version 19.x is compatible with Angular 19+, version 20.x will be compatible with Angular 20+, and so on.
π Try it live! We've created a comprehensive demo application that showcases all components and their features:
# Clone the repository git clone https://github.com/mikaelbotassi/ng-bootstrap-addons.git # Install dependencies npm install # Start the demo application npm startThe demo application includes:
- π Interactive examples of all components
- π¨ Live customization options
- π Usage documentation and code examples
- π§ Form integration examples
- βΏ Accessibility demonstrations
- π± Responsive design showcases
- Component Gallery: Browse all available components with live examples
- Interactive Playground: Test component properties and see real-time changes
- Code Snippets: Copy-paste ready code examples for each component
- Form Integration: See how components work with Angular Reactive Forms
- Accessibility Testing: Validate ARIA compliance and keyboard navigation
- Theme Customization: Preview different Bootstrap themes and customizations
- Demo Application
- Features
- Main Use Cases
- Installation
- Quick Start
- Configuration and Customization
- Components
- Directives
- Pipes
- Utilities
- Testing
- Development
- Contributing
- License
- Author
- π― Production Ready: Tested and optimized components with comprehensive unit tests
- π± Responsive: Mobile-first design with Bootstrap 5 integration
- π§ TypeScript: Fully typed for better development experience
- π¨ Customizable: Easily customizable styles with CSS variables and SCSS
- βΏ Accessible: ARIA support and accessibility standards compliance
- π§ͺ Well Tested: Comprehensive unit test coverage (95%+)
- π¦ Tree-shakable: Only necessary code is included in the bundle
- π Reactive Forms: Native integration with Angular Reactive Forms
- π Internationalization: Support for multiple locales (pt-BR, en-US)
- π Custom Icons: Dependency-free SVG icons using CSS masks
- π Floating Labels: Bootstrap 5 floating labels support
- π Advanced Search: Flexible autocomplete with remote data sources
This library was specially created for:
- π Forms with Elegant UI: Create beautiful and functional forms quickly
- π§ Complement to ngx-bootstrap: Fill gaps and add missing functionalities in ngx-bootstrap
- π Enterprise Applications: Robust components for complex systems
- β‘ Rapid Development: Accelerate development with ready-made components
- π¨ Visual Consistency: Maintain consistent design throughout the application
π‘ Tip: This library is the perfect complement for those who already use ngx-bootstrap and want a more complete and modern UI.
npm install ng-bootstrap-addonsπ Note: Use the version that matches your Angular version. For Angular 19+, use ng-bootstrap-addons 19.x.
npm install @angular/cdk@^19.2.10 ngx-bootstrap@^19.0.2 ngx-mask@^19.0.6 bootstrap@^5.3.3// app.component.ts import { Component } from '@angular/core'; import { InputComponent } from 'ng-bootstrap-addons/inputs'; import { SelectComponent } from 'ng-bootstrap-addons/selects'; @Component({ selector: 'app-root', standalone: true, imports: [InputComponent, SelectComponent], template: ` <nba-input [label]="'Name'" [(ngModel)]="name" [required]="true"> </nba-input> <nba-select [label]="'Category'" [options]="categories" [(ngModel)]="selectedCategory"> </nba-select> ` }) export class AppComponent { name = ''; selectedCategory = ''; categories = [ { value: '1', label: 'Category 1' }, { value: '2', label: 'Category 2' } ]; }import { NgBootstrapAddonsModule } from 'ng-bootstrap-addons'; @NgModule({ imports: [ NgBootstrapAddonsModule, // other imports... ], }) export class AppModule { }| ng-bootstrap-addons | Angular | ngx-bootstrap | ngx-mask | Bootstrap | Status |
|---|---|---|---|---|---|
| 19.0.1 | 19.x | 19.x | 19.x | 5.3+ | β Current |
| 19.1.x | 19.x | 19.x | 19.x | 5.3+ | π Next |
| 20.x | 20.x | 20.x | 20.x | 5.3+ | π Planned |
π‘ Strategy: We maintain major version alignment with Angular. When Angular releases version X, we release ng-bootstrap-addons version X to ensure compatibility and leverage the latest features.
This library uses Bootstrap 5.3+ as a base and provides custom CSS variables for enhanced theming:
// styles.scss or in your main styles file // Customize Bootstrap variables :root { --bs-primary: #your-primary-color; --bs-secondary: #your-secondary-color; --bs-success: #your-success-color; // ... other variables } // Custom library variables :root { --nba-input-border-radius: 0.375rem; --nba-input-focus-color: #0d6efd; --nba-error-color: #dc3545; --nba-success-color: #198754; }The library now uses dependency-free SVG icons implemented with CSS masks:
// No external dependencies required! // Icons are built-in and use currentColor for theming .eye-icon { color: var(--bs-primary); // Will inherit your theme colors }// app.config.ts import { registerLocaleData } from '@angular/common'; import localePt from '@angular/common/locales/pt'; import localeEn from '@angular/common/locales/en'; registerLocaleData(localePt); registerLocaleData(localeEn); // For date pickers import { defineLocale, ptBrLocale } from 'ngx-bootstrap/chronos'; defineLocale('pt-br', ptBrLocale);οΏ½ Tip: All components support Bootstrap 5 floating labels, reactive forms integration, and accessibility features.
Display elegant empty states with customizable SVG illustrations.
<nba-empty-data [title]="'No Records Found'" [subtitle]="'Try adjusting your search criteria'"> </nba-empty-data>Features:
- Built-in SVG illustrations
- Customizable titles and messages
- Responsive design
- Bootstrap styling integration
Modern file upload component with drag & drop functionality.
<nba-drag-drop-upload [acceptedTypes]="['.pdf', '.jpg', '.png']" [maxFileSize]="5242880" [multiple]="true" (onFilesSelected)="handleFiles($event)"> </nba-drag-drop-upload>Features:
- Drag & drop interface
- File type validation
- Size limit enforcement
- Progress tracking
- Multiple file support
Automatic display of form validation errors with internationalization support.
<nba-form-error-message [control]="userForm.get('email')"> </nba-form-error-message>Features:
- Automatic error detection
- Custom error messages
- Internationalization ready
- Bootstrap styling
Advanced autocomplete with flexible API integration and modal support.
<nba-ac-search-lov [acUrl]="'api/users/search'" [acParams]="searchParams" [displayField]="'name'" [valueField]="'id'" [(ngModel)]="selectedUser" [required]="true"> </nba-ac-search-lov>Features:
- Flexible API integration (query, body, or path params)
- Modal for multiple results
- Debounced search
- Keyboard navigation
- Custom result templates
Date range selector with Bootstrap floating labels and locale support.
<nba-datetime-range-input [label]="'Select Period'" [customConfigs]="dateConfigs" [(ngModel)]="dateRange" [required]="true"> </nba-datetime-range-input>Features:
- Bootstrap 5 floating labels
- pt-BR and en-US locale support
- Time selection support
- Custom date formats
- Validation integration
Versatile input with password toggle, masks, and floating labels.
<nba-input [label]="'Password'" [type]="'password'" [required]="true" [showPasswordToggle]="true" [(ngModel)]="password"> </nba-input>Features:
- Password visibility toggle with custom SVG icons
- Input masking support
- Bootstrap floating labels
- Real-time validation
- Multiple input types
Simple input with placeholder functionality.
<nba-input-placeholder [placeholder]="'Enter your name'" [(ngModel)]="name"> </nba-input-placeholder>Modern toggle switch with smooth animations.
<nba-switch [label]="'Enable notifications'" [(ngModel)]="notificationsEnabled" [disabled]="false"> </nba-switch>Features:
- Smooth animations
- Disabled state support
- Bootstrap integration
- Accessibility compliant
Enhanced dropdown with search and Bootstrap floating labels.
<nba-select [label]="'Choose Category'" [options]="categories" [valueField]="'id'" [displayField]="'name'" [required]="true" [(ngModel)]="selectedCategory"> </nba-select>Features:
- Search functionality
- Bootstrap floating labels
- Custom value/display fields
- Validation support
- Keyboard navigation
Advanced multiselect with checkboxes and batch operations.
<nba-multiselect [label]="'Select Options'" [options]="options" [showSelectAll]="true" [(ngModel)]="selectedOptions" [required]="true"> </nba-multiselect>Features:
- Checkbox-based selection
- Select all/none functionality
- Custom SVG icons (circle, circle-dot, circle-check)
- Tag-based display
- Search filtering
Enhanced textarea with Bootstrap floating labels and validation.
<nba-textarea [label]="'Comments'" [rows]="4" [maxLength]="500" [required]="true" [(ngModel)]="comments"> </nba-textarea>Features:
- Bootstrap floating labels
- Character counting
- Auto-resize functionality
- Validation integration
- Customizable rows
Customizable label with required field indicators.
<nba-label [for]="'username'" [required]="true" [text]="'Username'"> </nba-label>Features:
- Required field asterisk
- Bootstrap styling
- Accessibility support
- Custom styling options
Detects clicks outside the element for dropdowns and modals.
<div clickOutside (clickedOutside)="closeModal()"> <!-- modal content --> </div>Base directive for seamless Angular Forms integration.
<input controlValueAccessor [(ngModel)]="value">Automatic formatting of monetary values with real-time updates.
<input currency [hasCurrency]="true" [decimalPlaces]="2" [(ngModel)]="amount">Features:
- Real-time currency formatting
- Configurable decimal places
- Initial value formatting
- Form integration
Password visibility toggle with custom SVG icons.
<input type="password" input-password>Features:
- Eye/eye-off SVG icons using CSS masks
- Smooth toggle animations
- Focus/blur behavior
- No external dependencies
Advanced number formatting.
{{ value | numeric:'1.2-2':'pt-BR' }}Comprehensive date manipulation utilities with locale support.
import { DateUtils } from 'ng-bootstrap-addons/utils'; // Format dates const formatted = DateUtils.formatDate(new Date(), 'DD/MM/YYYY'); // Parse Brazilian dates const brazilianDate = DateUtils.fromBrazilianDate('25/12/2024'); // Parse US dates const usDate = DateUtils.fromUSDate('12/25/2024'); // Get locale-specific format const format = DateUtils.getDateFormat('pt-BR'); // 'DD/MM/YYYY' const format2 = DateUtils.getDateFormat('en-US'); // 'MM/DD/YYYY'Features:
- Multi-locale support (pt-BR, en-US)
- Date parsing and formatting
- Timezone handling
- Validation utilities
Comprehensive file manipulation functions.
import { fileToBlob, convertBlobToFile } from 'ng-bootstrap-addons/utils'; // Convert file to blob const blob = await fileToBlob(file); // Convert blob to file const convertedFile = convertBlobToFile({ nome: 'document.pdf', item: blobData });Async operation management with the Command pattern.
import { Command1 } from 'ng-bootstrap-addons/utils'; const command = new Command1<ResultType, ParamsType>((params) => this.service.getData(params) ); // Execute command const result = await command.execute(params);The library maintains 95%+ test coverage with comprehensive unit tests covering:
- Components: Rendering, interaction, and integration tests
- Directives: Behavior validation and DOM manipulation
- Services: Business logic and API integration
- Pipes: Data transformation accuracy
- Utilities: Helper function reliability
# Run all tests ng test # Run tests with coverage ng test --code-coverage # Run specific component tests ng test --include="**/empty-data.component.spec.ts" # Run tests in watch mode ng test --watch- β 95%+ Code Coverage: Comprehensive test coverage
- β Unit Tests: Isolated component testing
- β Integration Tests: Component interaction validation
- β Accessibility Tests: ARIA compliance verification
- β Form Integration: Reactive forms validation
- β Error Handling: Edge case coverage
- β Performance: Load and stress testing
The demo application serves as a comprehensive integration test suite:
# Run demo application npm start # Test all components interactively # Verify responsive behavior # Validate accessibility features # Test form integrations# Clone the repository git clone https://github.com/mikaelbotassi/ng-bootstrap-addons.git cd ng-bootstrap-addons # Install dependencies npm install # Start development server with demo npm startThe demo application showcases all components and serves as a development playground:
# Start demo application npm start # The demo runs on http://localhost:4200 # Features live reload for development # Includes all component examples# Build the library ng build ng-bootstrap-addons # Run tests ng test # Run tests with coverage ng test --code-coverage # Build for production ng build ng-bootstrap-addons --configuration production- Hot Reload: Instant updates during development
- Source Maps: Full debugging support
- TypeScript: Strict mode enabled
- Linting: ESLint with Angular rules
- Testing: Karma + Jasmine setup
- Coverage: Istanbul code coverage reports
ng-bootstrap-addons/ βββ projects/ β βββ ng-bootstrap-addons/ # Main library β β βββ components/ # UI components β β βββ directives/ # Utility directives β β βββ inputs/ # Input components β β βββ selects/ # Selection components β β βββ pipes/ # Data transformation β β βββ services/ # Business logic β β βββ utils/ # Utilities β β βββ textarea/ # Textarea component β β βββ drag-drop-upload/ # File upload β β βββ form-error-message/ # Error handling β β βββ label/ # Label component β β βββ src/tests/ # Unit tests β βββ demo/ # Demo application β βββ src/app/ β βββ components/ # Demo components β βββ containers/ # Demo containers βββ README.md # This file βββ package.json # Project configuration # Build the library ng build ng-bootstrap-addons # Navigate to dist directory cd dist/ng-bootstrap-addons # Publish to npm npm publishContributions are welcome! To contribute:
- Fork the project
- Create a branch for your feature (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Use TypeScript strict mode
- Follow Angular Style Guide conventions
- Write tests for new features
- Use Conventional Commits
- Keep documentation updated
- π¨ Bootstrap 5 floating labels integration
- οΏ½ Dependency-free SVG icons using CSS masks
- οΏ½π Enhanced i18n support (pt-BR, en-US)
- π± Mobile-first responsive design
- βΏ Improved accessibility features
- π§ͺ 95%+ test coverage
- π Comprehensive demo application
- π Advanced search and filtering
- π¨ Theme customization tools
- π Performance optimizations
π‘ Note: We follow Angular's release schedule. Major versions are released every 6 months to ensure compatibility with the latest Angular features.
- π Live Demo Application - Interactive component showcase
- π¦ NPM Package
- π GitHub Repository
- π Complete Documentation
- π Report Issues
- π‘ Feature Requests
- π― Development Guide
- π§ͺ Testing Guide
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License Copyright (c) 2025 Mikael Botassi de Oliveira Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Mikael Botassi de Oliveira
- Full Stack Developer specialized in Angular and Node.js
- Creator of NgBootstrap Addons library
- Focused on creating solutions that accelerate enterprise application development
- π§ Email: mikaelbotassi@gmail.com
- πΌ LinkedIn: linkedin.com/in/mikaelbotassi
- π GitHub: github.com/mikaelbotassi
Special thanks to:
- Angular team for the excellent framework
- ngx-bootstrap community for the base components that inspired this library
- Bootstrap community for the robust CSS framework
- Open source community for contributions and feedback
- Developers who use and test this library in real applications
- All contributors and users of this library
β If this library was useful to you, consider giving it a star on GitHub!
Last updated: July 2025